stock_details: Return Stock Data

Description Usage Arguments Details Value Author(s) See Also

View source: R/nasdaq_functions.R

Description

Function that return stock data based on the user inputs. The shiny app uses this function to get the data. By default the function gives 10 years data for the stock if the start and end dates are not specified

Usage

1
2
3
4
5
stock_details(
  stock_name,
  start_date = Sys.Date() - lubridate::years(10),
  end_date = Sys.Date()
)

Arguments

stock_name

a sting that represent the symbol of the Company listed in NASDAQ

start_date

a sting that represent the date; By default 10 years from current date is considered

end_date

a sting that represent the date; Current date is taken as default if no value is provided

Details

The function initially cleans the entered argumets and check their validity. Then update the data file and finally return the data table

Value

Stock Data Table

Author(s)

Rijin Baby

See Also

read.csv View


unimi-dse/d7f30b68 documentation built on May 28, 2020, 9:31 a.m.