[R-SIG-Finance] about an error of xts

Brian G. Peterson brian at braverock.com
Mon Apr 23 17:08:27 CEST 2012


On Mon, 2012-04-23 at 11:03 -0400, R. Michael Weylandt wrote:
> In addition to what's been said, you could much more easily write:
> 
> GSPC <- getSymbols("^GSPC", from = "2000-01-01", auto.assign = F) 

I'll make it simpler still...

getSymbols("^GSPC", from = "2000-01-01")

which will create object 'GSPC' and avoids the frowned upon use of 'F'
for FALSE (which can easily collide with a variable)

Regards,

   - Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list