Skip to contents

Retrieve sample financial data for analysis

Usage

get_sample_data(data_type = "global_markets", n_assets = 10, n_periods = 1000)

Arguments

data_type

Character string specifying data type: "global_markets", "crypto", "commodities"

n_assets

Integer number of assets to include (default: 10)

n_periods

Integer number of time periods (default: 1000)

Value

Matrix of financial returns data

Examples

if (FALSE) { # \dontrun{
data <- get_sample_data("global_markets")
crypto_data <- get_sample_data("crypto", n_assets = 5)
} # }