Re: [R] simple read in with zoo using POSIXlt

2012-04-15 Thread Gabor Grothendieck
On Sun, Apr 15, 2012 at 3:45 PM, knavero wrote: > > Achim Zeileis-4 wrote >> >> I don't know why you make this so complicated. Either use >> >> read.zoo("test.txt", header = FALSE, sep = "\t", >>    format = "%d/%m/%Y %H:%M", tz = "") >> >> which yields a POSIXct time index. Alternatively, you can

Re: [R] simple read in with zoo using POSIXlt

2012-04-15 Thread knavero
Thanks Gabor. Much appreciated. -- View this message in context: http://r.789695.n4.nabble.com/simple-read-in-with-zoo-using-POSIXlt-tp4557138p4559762.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list ht

Re: [R] simple read in with zoo using POSIXlt

2012-04-15 Thread knavero
Achim Zeileis-4 wrote > > I don't know why you make this so complicated. Either use > > read.zoo("test.txt", header = FALSE, sep = "\t", >format = "%d/%m/%Y %H:%M", tz = "") > > which yields a POSIXct time index. Alternatively, you can produce POSIXlt > via strptime: > > read.zoo("test.tx

Re: [R] simple read in with zoo using POSIXlt

2012-04-15 Thread Achim Zeileis
On Sat, 14 Apr 2012, knavero wrote: Achim Zeileis-4 wrote You just need to declare that the index is in two columns (1 and 2) and then provide a function that extracts a suitable object from it: read.zoo("test.txt", header = FALSE, index = 1:2, FUN = function(x, y) strptime(paste(x, y), "

Re: [R] simple read in with zoo using POSIXlt

2012-04-14 Thread Gabor Grothendieck
On Sat, Apr 14, 2012 at 5:06 PM, knavero wrote: > > Achim Zeileis-4 wrote >> >> You just need to declare that the index is in two columns (1 and 2) and >> then provide a function that extracts a suitable object from it: >> >> read.zoo("test.txt", header = FALSE, index = 1:2, >>    FUN = function(x

Re: [R] simple read in with zoo using POSIXlt

2012-04-14 Thread knavero
Achim Zeileis-4 wrote > > You just need to declare that the index is in two columns (1 and 2) and > then provide a function that extracts a suitable object from it: > > read.zoo("test.txt", header = FALSE, index = 1:2, >FUN = function(x, y) strptime(paste(x, y), "%d/%m/%Y %H:%M")) > > Use

Re: [R] simple read in with zoo using POSIXlt

2012-04-14 Thread knavero
Achim Zeileis-4 wrote > > You just need to declare that the index is in two columns (1 and 2) and > then provide a function that extracts a suitable object from it: > > read.zoo("test.txt", header = FALSE, index = 1:2, >FUN = function(x, y) strptime(paste(x, y), "%d/%m/%Y %H:%M")) > > Use

Re: [R] simple read in with zoo using POSIXlt

2012-04-14 Thread Achim Zeileis
On Sat, 14 Apr 2012, knavero wrote: Easy question a bit. So here's my code: http://pastebin.com/F4iQPVy5 I am trying to read in a series of timestamps. However with POSIXlt as FUN in read.zoo, the output is merely two numbers and is not the output that I'm hoping for. The code above should r