percent_change: Calculates daily percentage change of a stock price within a...

Description Usage Arguments Value Examples

View source: R/Rstockwatch.R

Description

Calculates daily percentage change of a stock price within a given period of time

Usage

1
percent_change(stock_ticker, start_date, end_date)

Arguments

stock_ticker

A string related to ticker of the stock or ETF, such as "AAPL"

start_date

A date in string format of "YYYY-MM-DD" related to start of data extraction

end_date

A date in string format of "YYYY-MM-DD" related to end of data extraction

Value

A data frame with dates and their corresponding stock price percentage changes

Examples

1
percent_change("AAPL", "2017-01-01", "2017-01-10")

UBC-MDS/Rstockwatch documentation built on Feb. 7, 2022, 9:11 a.m.