Re: [R] raster time series statistics

2018-03-06 Thread David Winsemius
ng so after all. So this is really a feature request for the maintainer. You should contact the responsible individual. maintainer('rts') [1] "Babak Naimi " > > > -Original Message- > From: Jim Lemon [mailto:drjimle...@gmail.com] > Sent: Tuesday, 6 March 20

Re: [R] raster time series statistics

2018-03-05 Thread Alexander.Herr
y, 6 March 2018 11:40 AM To: Herr, Alexander (L&W, Black Mountain) Cc: David Winsemius ; r-help mailing list Subject: Re: [R] raster time series statistics __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mail

Re: [R] raster time series statistics

2018-03-05 Thread Jim Lemon
> > apply.monthly(rsts,mean) > > > > -Original Message----- > From: David Winsemius [mailto:dwinsem...@comcast.net] > Sent: Tuesday, 6 March 2018 11:10 AM > To: Herr, Alexander (L&W, Black Mountain) > Cc: r-help@r-project.org > Subject: Re: [R] raster time

Re: [R] raster time series statistics

2018-03-05 Thread Alexander.Herr
x27;)->r2017 class(r2017@time) class(rsts@time) apply.monthly(rsts,mean) -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Tuesday, 6 March 2018 11:10 AM To: Herr, Alexander (L&W, Black Mountain) Cc: r-help@r-project.org Subject: Re: [R] raster ti

Re: [R] raster time series statistics

2018-03-05 Thread Alexander.Herr
(rsts,'2017')->r2017 class(r2017@time) class(rsts@time) apply.monthly(rsts,mean) -Original Message- From: Jim Lemon [mailto:drjimle...@gmail.com] Sent: Tuesday, 6 March 2018 11:14 AM To: Herr, Alexander (L&W, Black Mountain) Cc: r-help mailing list Subject: Re: [R] raster

Re: [R] raster time series statistics

2018-03-05 Thread Jim Lemon
Hi Herry, This is probably due to a call to strptime (or similar). No, it doesn't accept %Y-%m as a valid format. Maybe add a constant day to all the dates as that will work: dt<-list(ID=seq(1:24),month=rep(formatC(1:12,flag=0,width=2),2), year=sort(rep(2016:2017,12))) timelst<-paste(unlist(dt['y

Re: [R] raster time series statistics

2018-03-05 Thread David Winsemius
> On Mar 5, 2018, at 3:28 PM, > wrote: > > Hi List, > > The following code returns an "Error in as.POSIXlt.character(x, tz, ...) : > character string is not in a standard unambiguous format" I'm unable to produce that error. Which function was being evaluated to produce the error? I don'

[R] raster time series statistics

2018-03-05 Thread Alexander.Herr
Hi List, The following code returns an "Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format" require(raster) require(rts) require(stringi) r <- raster(ncol=100, nrow=100) values(r) <- runif(ncell(r)) list(ID=seq(1:24),month=rep(str_pad(1:12, pad