R with xts subsetting: start date plus setting range -
while subsetting xts set range between 2 dates/times e.g.
df["t08:00/t16:59"]
or
df["2012-12-12/2012-12-12"]
i wanna set start date , special period: e.g 14 days. how solve problem, calculating 2nd external variable. or possible set range of subset?
example: df["2012-12-12/14days.."]
thanks!
try this
first(df["2012-12-12/"], "14 days")
Comments
Post a Comment