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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -