On Tue, Jul 16, 2013 at 12:23 PM, Dia <mnshd...@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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.