search for: r2017

Displaying 6 results from an estimated 6 matches for "r2017".

Did you mean: 2017
2018 Mar 06
2
raster time series statistics
...month=rep(formatC(1:12,flag=0,width=2),2), year=sort(rep(2016:2017,12))) timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']),"-01") strptime(timelst,format="%Y-%m-%d")->t1 rts(s,time=as.yearmon(t1))->rsts subset(rsts,'2017')->r2017 class(r2017 at time) class(rsts at time) apply.monthly(rsts,mean) -----Original Message----- From: David Winsemius [mailto:dwinsemius at comcast.net] Sent: Tuesday, 6 March 2018 11:10 AM To: Herr, Alexander (L&W, Black Mountain) <Alexander.Herr at csiro.au> Cc: r-help at r-project.or...
2018 Mar 06
1
raster time series statistics
...month=rep(formatC(1:12,flag=0,width=2),2), year=sort(rep(2016:2017,12))) timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']),"-01") strptime(timelst,format="%Y-%m-%d")->t1 rts(s,time=as.yearmon(t1))->rsts subset(rsts,'2017')->r2017 class(r2017 at time) class(rsts at time) apply.monthly(rsts,mean) # this creates error rts(s,time=as.Date(t1))->rsts1 apply.monthly(rsts1,mean) # this creates output -----Original Message----- From: Jim Lemon [mailto:drjimlemon at gmail.com] Sent: Tuesday, 6 March 2018 11:40 AM To: Herr, Ale...
2018 Mar 06
0
raster time series statistics
...,width=2),2), > year=sort(rep(2016:2017,12))) > timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']),"-01") > strptime(timelst,format="%Y-%m-%d")->t1 > > rts(s,time=as.yearmon(t1))->rsts > subset(rsts,'2017')->r2017 > class(r2017 at time) > class(rsts at time) > > apply.monthly(rsts,mean) > > > > -----Original Message----- > From: David Winsemius [mailto:dwinsemius at comcast.net] > Sent: Tuesday, 6 March 2018 11:10 AM > To: Herr, Alexander (L&W, Black Mountain) <Alexand...
2018 Mar 05
4
raster time series statistics
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 = 0,width = 2 , "left"),2),year=sort(rep(2016:2017,12)))->dt
2018 Mar 06
0
raster time series statistics
> On Mar 5, 2018, at 3:28 PM, <Alexander.Herr at csiro.au> <Alexander.Herr at csiro.au> 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't see
2018 Mar 06
0
raster time series statistics
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['year']),unlist(dt['month']),"01",sep="-")