View source: R/upload_support.R
holidays_to_json | R Documentation |
Function to encode the data.table output of the TOU_to_streaming function into JSON for upload to MIDAS.
holidays_to_json(holidays, energy_code, energy_desc, prettify = FALSE)
holidays |
data.frame or data.table like the ones created by the import_holidays function |
energy_code |
atomic character two character MIDAS energy code for uploading company |
energy_desc |
atomic character name of uploading energy company from Energy lookup table |
prettify |
atomic logical TRUE to generate prettified JSON, FALSE by default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.