tidy_prices | R Documentation |
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.
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.
data.frame of cleaned prices
tidy_prices()
: combines relevant columns from the original price
data set.
Convert certain columns into character in order to
bypass the warning generated by dplyr::bind_rows()
get_prices
my_companies <- data.frame(ticker=c('GOOG', 'IBM'))
raw_price_data <- get_prices(my_companies)
prices <- tidy_prices(raw_price_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.