[R] XTS Subsetting question (noob)

john.dempster78 john.dempster78 at gmail.com
Tue Oct 16 12:04:48 CEST 2012

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/']


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.

More information about the R-help mailing list