scottstock: scottstock

Description Usage Arguments Value Examples

View source: R/scottstock.R

Description

Yahoo Finance data analysis in R

Usage

1
scottstock(ticker, frequency, start_date, end_date)

Arguments

ticker

The stock symbol you want: "MSFT", or you can specify multiple by c("MSFT", "FB")

frequency

YourThe type of data you want to pull: "daily", "weekly", "monthly", "yearly"

start_date

The earliest date from which you want to pull data: "MM-DD-YYYY" surrounded by quotes

end_date

The latest date from which you want to pull data: "MM-DD-YYYY" surrounded by quotes

Value

Output is a dataframe with the stock data specified. scottstock() returns the Yahoo Finance data for a given ticker and start/end dates.

Examples

1
myStock <- scottstock("MSFT","monthly", "01-01-2019", "12-31-2019")

scottroot/scottstock documentation built on April 1, 2020, 10:28 a.m.