Re: [R] Problems with Mann-Kendall trend test

2016-06-17 Thread Morteza Firouzi via R-help
Dear, You have to store your data as a Time-Series (ts), first. To define a column of data as ts, you may use this: library(timeSeries)Nile <- read.csv(file.choose(), header=F)#If your data is monthly, you may define the frequency as 12, for annual ts set freq. as 1. #If your data starts from for

Re: [R] Problems with Mann-Kendall trend test

2016-06-17 Thread Jeff Newmiller
Not reproducible. Use dput to generate R code form of your data along with the code that gave you the error, and set the email to plain text only when you send it so it doesn't get corrupted when the html is stripped on the mailing list. -- Sent from my phone. Please excuse my brevity. On Jun

[R] Problems with Mann-Kendall trend test

2016-06-17 Thread lily li
Dear R users, Can anyone help me with mann-kendall trend test? I tried to use the newest packages 'trend', and the function mk.test, but had problems in applying the input data. For example, res <- mk.test(Nile), Nile is a time-series data. But when I use my dataset, with one column which is a ti