Re: [R] Using getSymbols

2009-02-03 Thread Gabor Grothendieck
xts has a bracket notation like this: u <- getSymbols("PPIACO", src="FRED", verbose=TRUE, auto.assign=FALSE) u["1970::"] and zoo uses window just like ts does: z <- as.zoo(u) window(z, start = "1970-01-01") On Mon, Feb 2, 2009 at 11:58 PM, Shruthi Jayaram wrote: > > Hi, > > How can one ask ge

[R] Using getSymbols

2009-02-02 Thread Shruthi Jayaram
Hi, How can one ask getSymbols to obtain data within a specified time interval? For example, if I am downloading US PPI data: usppi <- as.zoo(getSymbols("PPIACO", src="FRED", verbose=TRUE, auto.assign=FALSE)) How do I ask getSymbols to truncate starting from Jan-1970 until present? I looked up