Skip to content
Prev 13907 / 15274 Next

dataset to xts conversion issue with timeseries data

Hi,

Sorry if my mail lacked information. But I took Ilya's point and it's resolved now. Still I will explain the issue once more.
times askValue askSize      stockName askType
1 2016-02-01 09:15:01    91.80     500 DITV IS Equity     Ask
2 2016-02-01 09:15:02    92.40    1420 DITV IS Equity     Ask
3 2016-02-01 09:15:04    92.20    5000 DITV IS Equity     Ask
4 2016-02-01 09:15:05    91.90    6524 DITV IS Equity     Ask
5 2016-02-01 09:15:06    91.90   11524 DITV IS Equity     Ask
6 2016-02-01 09:15:06    92.05    6824 DITV IS Equity     Ask

This is the data from data set. Now if I convert it to xts then the "times" column is converting to index (as for time series data). So to select data from xts matching particular timestamp was becoming difficult. That's what Ilya explained that matrix data structure of xts.

-- 
Thanks, 
Aritra 

----- Original Message -----
From: "Brian G. Peterson" <brian at braverock.com>
To: r-sig-finance at r-project.org
Sent: Friday, May 13, 2016 3:32:04 PM
Subject: Re: [R-SIG-Finance] Fwd: dataset to xts conversion issue with timeseries data

Please make it easy for someone else to help you.  Provide a minimal 
example, e.g. use dput to export a small copy of your object showing us 
what you're trying to do and the code you are trying.

Ilya's advice was correct, so your problem is unquestionably user error, 
but it will be hard for anyone to help you if you don't show us 
precisely what you are trying by providing a reproducible example 
including a copy of your input data.
On 05/13/2016 12:17 AM, Aritra Pan wrote:

        
On 05/13/2016 12:09 AM, Ilya Kipnis wrote:
which are
helps.
that's
same
download data