Re: [R] xts off by one confusion or error

2010-04-08 Thread Tim Coote
x Jan 2010 6.08 > zoo (aggregate (vv, as.yearmon(index(vv)), mean)) x Feb 2010 6.08 On 8 Apr 2010, at 15:53, Tim Coote wrote: On 8 Apr 2010, at 15:53, Tim Coote wrote: Hullo I may have missed something blindingly obvious here. I'm using xts to handle some timeseries d

Re: [R] xts off by one confusion or error

2010-04-08 Thread Tim Coote
x Jan 2010 6.08 > zoo (aggregate (vv, as.yearmon(index(vv)), mean)) x Feb 2010 6.08 On 8 Apr 2010, at 15:53, Tim Coote wrote: Hullo I may have missed something blindingly obvious here. I'm using xts to handle some timeseries data. I've got daily measurements for 100 y

[R] xts off by one confusion or error

2010-04-08 Thread Tim Coote
Hullo I may have missed something blindingly obvious here. I'm using xts to handle some timeseries data. I've got daily measurements for 100 years. If I try to reduce the error rate by taking means of each month, I'm getting what at first sight appears to be conflicting information. Here's

Re: [R] Best Hardware & OS For Large Data Sets

2010-02-27 Thread Tim Coote
self-contained, reproducible code. Tim Coote t...@coote.org +44 (0)7866 479 760 __ 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 com

Re: [R] reading data from web data sources

2010-02-27 Thread Tim Coote
;- readLines(myURL) DF <- read.table(textConnection(raw.lines[!grepl("[^ 0-9.]",raw.lines)]), fill = TRUE) DF$V1 <- DF[cumsum(is.na(DF[[2]])), 1] DF <- na.omit(DF) head(DF) On Sat, Feb 27, 2010 at 6:32 AM, Tim Coote > wrote: Hullo I'm trying to read some time series data

[R] reading data from web data sources

2010-02-27 Thread Tim Coote
o that it is easier to consume by machines, while being easy to read for humans. The early records are a serious machine parsing challenge as they are tiff images of old notebooks ;-) tia Tim Tim Coote t...@coote.org vincit veritas __ R-he

[R] parsing dates in input file

2007-12-13 Thread Tim Coote
I've hunted around to try to work this out and cannot find anything aposite, although there are exhortations to read News files and the fine manual in response to similar queries. Hope I haven't missed anything obvious. I want to read in csv files that contain dates, or date times. If I read the