An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130716/45068099/attachment.pl>
help
2 messages · Dia, Joshua Ulrich
On Tue, Jul 16, 2013 at 12:23 PM, Dia <mnshdtt0 at gmail.com> wrote:
Hi, i am tring to learn R own my own. From where can i download data for R (creating a subset). Right now i'm using (http://finance.yahoo.com/q/hp?s=MCD+Historical+Prices) this link for data but unable to create subset. Can someone help me using this data or help me to download different data?
Use quantmod::getSymbols.
library(quantmod)
getSymbols("MCD")
str(MCD)
And read ?xts for ways to subset the MCD object.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com