I am trying to use the SeasonalMannKendall function in the Kendall package. My dataset (alb_data) is in the same format as the example dataset (manaus) in the package.
> class(manaus) [1] "ts" > is.ts(manaus) [1] TRUE > typeof(manaus) [1] "double" > alb_data=read.table("R:/albemarle_manken.txt", header=T) > head(alb_data) year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 1 1997 NaN NaN NaN NaN NaN NaN NaN NaN 23.406 16.166 16.057 16.803 2 1998 14.157 14.605 14.112 17.709 13.800 14.338 14.157 17.404 17.725 15.429 16.090 18.061 3 1999 14.888 13.837 15.929 13.637 16.020 14.699 15.987 15.212 14.752 15.935 13.397 21.725 4 2000 16.562 18.125 19.600 17.971 16.454 15.129 13.901 21.664 17.675 13.793 13.464 16.452 5 2001 15.706 16.417 13.324 14.117 13.550 15.825 14.687 14.844 15.006 14.793 13.489 15.726 6 2002 11.777 11.775 11.564 13.141 14.462 15.517 18.801 15.652 17.127 14.070 14.626 17.964 > class(alb_data) [1] "data.frame" > is.ts(alb_data) [1] FALSE > typeof(alb_data) [1] "list" Can anyone please help me get my dataset into the correct format so that I can run the test? Thank you for your time and help! -- View this message in context: http://r.789695.n4.nabble.com/convert-list-into-a-time-series-tp4658716.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.