Re: [R] Raw epoch time from XTS

2011-08-21 Thread Noah Silverman
Josh, Good point about including an example. calling xcoredata() does work, but only for a *single* row of the data at a time. In R, I'm used to passing an entire data structure or vector to a function and automatically getting back a vector of all the results. In this case, it doesn't work

Re: [R] Raw epoch time from XTS

2011-08-21 Thread Joshua Wiley
Noah, For me xcoredata() returns a vector of the results, which makes me wonder if you are using an old version of R or your data is somehow stored differently. Cheers, Josh On Sun, Aug 21, 2011 at 10:15 AM, Noah Silverman noahsilver...@ucla.edu wrote: Josh, Good point about including an

[R] Raw epoch time from XTS

2011-08-20 Thread Noah Silverman
Hi, I have a very large data set stored as an xts object. xts is very nice about showing row labels as human readable dates and times. I want the actual epoch values that are stored internally. The only way I can find to access them is one-at-a-time using the internal function: xcoredata()

Re: [R] Raw epoch time from XTS

2011-08-20 Thread Joshua Wiley
Hi Noah, This is one of those cases where following the posting guide (particularly the minimal, reproducible example part) would have really helped. Are you saying that calling: xcoredata(your_xts_object) does not give you the internal representation of time that you want? data(sample_matrix)