Re: [R] vectorization of rolling function

2014-12-08 Thread Arnaud Duranel
Great, many thanks for your help Jeff. Apologies for the HTML format, I'll be more careful next time. Arnaud On 08/12/2014 08:25, Jeff Newmiller wrote: Please don't post in HTML... you may not recognize it, but the receiving end does not necessarily (and in this case did not) look like the send

[R] POSIXct coerced into numeric when filling a data frame

2012-09-24 Thread Arnaud Duranel
dat2$second,format="%Y-%m-%d %HH:MM:%SS") dat2 # ID first second #1 a 2011-08-27 2011-08-27 #2 b 2011-10-30 2011-10-30 #3 c 2011-10-30 2011-10-30 #4 d 2012-06-22 2012-06-22 str(dat2) #'data.frame':4 obs. of 3 variables: # $ ID : Factor w/ 4 levels "a",&quo

[R] POSIXct coerced into numeric when filling a data frame

2012-09-24 Thread Arnaud Duranel
Hello I have a list of POSIXct objects, from which I want to extract those values that match a specific date, keeping them in POSIXct format. For a specific date there is 0-2 matching values. As an example (the actual list and objects are much longer): x<-list() x[["first"]]<-as.POSIXct(c("2011

[R] filtering out known instrumental error from time series

2012-09-20 Thread Arnaud Duranel
Hello all, I am working with high-frequency hydrological time series, from automatic loggers. These have a known instrumental error, determined from laboratory tests. Could anybody please advise on methods (an indeed R packages/functions) that I could use to remove part of this instrumental no