tidy_prices: Formats raw price data.

Description Usage Arguments Details Value See Also Examples

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

1

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.

See Also

get_prices

Examples

 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)

anttsou/qmj documentation built on May 10, 2019, 12:28 p.m.