tidy_prices {qmj} | R Documentation |
Formats raw price data.
Description
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.
Usage
tidy_prices(x)
Arguments
x |
Raw daily data, as produced by get_prices() |
Details
tidy_prices
produces a data frame that is 'tidy' or
more readily readable by a user and usable by other functions
within this package.
Value
Returns a data set that's been 'tidied' up for use by other functions in this package.
data.frame of cleaned prices
Functions
-
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()
See Also
Examples
my_companies <- data.frame(ticker=c('GOOG', 'IBM'))
raw_price_data <- get_prices(my_companies)
prices <- tidy_prices(raw_price_data)
[Package qmj version 0.2.1 Index]