View source: R/harmonised-reading.R
append_cost_to_sensor | R Documentation |
This function calculates the cost and append the price to some energy time series sensor, based on a tariff definition for that sensor in a BIGG-harmonised dataset.
append_cost_to_sensor(
buildingsRdf,
timeseriesObject,
tariffSubject,
measuredProperty,
frequency,
energyTimeseriesSensor
)
buildingsRdf |
<rdf> containing all metadata about buildings. It must be harmonised to BIGG Ontology. |
timeseriesObject |
<string> path of JSON files, or <list> of time series. |
tariffSubject |
<uri> with the tariff identifier. |
measuredProperty |
<string> with the energy measured property to consider for the tariff cost calculation (e.g. EnergyConsumptionGridElectricity, EnergyConsumptionGas) |
frequency |
<string> defining the frequency to be considered in the energy cost calculation. It must follow ISO 8601 format representing the time step. |
energyTimeseriesSensor |
<data.frame> output from get_sensor(). |
<data.frame>, by-passing the input argument energyTimeseriesSensor and appending columns related to energy cost.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.