Skip to content
Prev 308055 / 398506 Next

XTS Subsetting question (noob)

Hi,
How can an xts object be subset using a date in a variable? 
E.g. in below, what is the right syntax for Q to get the same value as P?
Obviously the syntax shown below doesnt work...
V is an xts object.

d = "2007-01-01"
P <- V['2007-01-01/']
Q <- V['d/']

Thanks,
J



--
View this message in context: http://r.789695.n4.nabble.com/XTS-Subsetting-question-noob-tp4646317.html
Sent from the R help mailing list archive at Nabble.com.