get_data: get_data

Description Usage Arguments Details Value Examples

View source: R/get_data.R

Description

Retrieve stock dataset with date, open, close, high, low,volume and adjusted price.

Usage

1
get_data(id = "TSLA", from = "2012-09-01", to = Sys.Date())

Arguments

id

character. Ticker of the desired stock. If NULL selects TSLA dataset.

from

date. The date you want to start. If NULL selects "2012-09-01"

to

date. The date you want to stop. If NULL selects today's date

Details

You have to store the result in a variable in order to be able to perform further analisys with the stock that you are intrested in

Value

A dataset of the selected stock

Examples

1
2
3
4
get_data()
get_data("AAPL")
aapl <- get_data("AAPL")
stockname <- get_data("id")

unimi-dse/e16b23fb documentation built on Feb. 16, 2020, 5:45 a.m.