[R] help

Joshua Ulrich josh.m.ulrich at gmail.com
Tue Jul 16 19:47:38 CEST 2013


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



More information about the R-help mailing list