## code to prepare `option_dataset` dataset goes here
price_data <- data.table::fread("data-raw/example_pricedata_small.csv")
option_dataset <- price_data[, .(option_quotes = list(.SD)),
by = .(ticker, t, exp, price=Price)]
option_dataset[, `:=`(t = lubridate::as_datetime(t),
exp = lubridate::as_date(exp))]
usethis::use_data(option_dataset, overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.