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
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
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
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), "
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
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
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
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
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 reproduce the error.
Here is code that sh
9 matches
Mail list logo