Message-ID: <1350381888300-4646317.post@n4.nabble.com>
Date: 2012-10-16T10:04:48Z
From: john.dempster78
Subject: 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.