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] Help me

2016-03-02 Thread Morteza Firouzi via R-help
 Moses, If I understand correctly, you are installed R and Rstudio.Please do find the package(s) you would like to use.Once you run rstudio, you can search and install the package(s) using the bottom right corner menu:Packages> Install> install from Repository (Cran)> search the package you woul

[R] zyp Vs. kendall package for Time Series Trend

2016-01-14 Thread Morteza Firouzi via R-help
Dear members, I need to detect trends in time series. To remove the effect of "Lag-1 serial correlation", it is suggested to use either Yue&Pilon or Zhang method. Both methods are available in "zyp" package. The package uses "kendall" package for trend analysis.   Based on Yue&Pilon (2002), if

Re: [R] missForest: Looping through files in a folder

2016-01-01 Thread Morteza Firouzi via R-help
xed=TRUE)for(i in 1:length(my.files)) { mydat<-read.csv(my.files[i])  mydatimp<-missForest(mydat,verbose=TRUE,maxiter=5)  write.csv(mydatimp$ximp,newfiles[i])} Jim On Sat, Jan 2, 2016 at 5:32 AM, Morteza Firouzi via R-help wrote: Dear members, Could you please help me on this issue. I'

[R] missForest: Looping through files in a folder

2016-01-01 Thread Morteza Firouzi via R-help
Dear members, Could you please help me on this issue. I've already searched and I watched some videos, but it was not useful.I need help to loop through the files in a folder (200+ csv files). I am using missForest() to impute missing values. If I run the code for each single file, I have to do