holidays_to_json: Convert streaming rate to JSON for upload

View source: R/upload_support.R

holidays_to_jsonR Documentation

Convert streaming rate to JSON for upload

Description

Function to encode the data.table output of the TOU_to_streaming function into JSON for upload to MIDAS.

Usage

holidays_to_json(holidays, energy_code, energy_desc, prettify = FALSE)

Arguments

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


stefwayland/cecmidas documentation built on Aug. 27, 2023, 2:36 p.m.