append_cost_to_sensor: Append the cost and price to some energy time series sensor

View source: R/harmonised-reading.R

append_cost_to_sensorR Documentation

Append the cost and price to some energy time series sensor

Description

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.

Usage

append_cost_to_sensor(
  buildingsRdf,
  timeseriesObject,
  tariffSubject,
  measuredProperty,
  frequency,
  energyTimeseriesSensor
)

Arguments

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().

Value

<data.frame>, by-passing the input argument energyTimeseriesSensor and appending columns related to energy cost.


biggproject/biggr documentation built on Oct. 2, 2024, 11:13 p.m.