Description Usage Arguments Details Value See Also Examples
Tidies raw prices and returns a tidied, usable data frame. Raw data should be structured identically to that produced by get_prices(), as this function depends on that structure.
1 | tidy_prices(x)
|
x |
Raw daily data, as produced by get_prices() |
tidy_prices
produces a data frame that is 'tidy' or
more readily readable by a user and usable by other functions
within this package.
Returns a data set that's been 'tidied' up for use by other functions in this package.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
sub_comps <- qmjdata::companies[1:2,]
raw_price_data <- get_prices(sub_comps)
prices <- tidy_prices(raw_price_data)
my_companies <- data.frame(ticker=c('GOOG', 'IBM'))
raw_price_data <- get_prices(my_companies)
prices <- tidy_prices(raw_price_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.