Learn R Programming

StockDistFit (version 1.0.0)

asset_loader: Load Asset Data.

Description

This function reads in asset data stored in .csv format and returns a time-series object of the asset data.

Usage

asset_loader(data_path, assets, price_col)

Value

An xts object with asset data.

Arguments

data_path

The path to the directory containing the .csv files.

assets

A vector of asset names to be loaded.

price_col

The name of the price column to be selected (e.g. Open, Close, Low, High).

Examples

Run this code

asset_loader(system.file("extdata", package = "StockDistFit"), c("AAPL", "TSLA"), "Close")


Run the code above in your browser using DataLab