append_emissions_to_sensor: Append the emissions to some energy time series sensor

View source: R/harmonised-reading.R

append_emissions_to_sensorR Documentation

Append the emissions to some energy time series sensor

Description

This function calculates the emissions related to some energy time series sensor, based on a tariff definition for that sensor in a BIGG-harmonised dataset.

Usage

append_emissions_to_sensor(
  buildingsRdf,
  timeseriesObject,
  emissionsSubject,
  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.

emissionsSubject

<uri> with the emissions identifier.

measuredProperty

<string> with the energy measured property to consider for the emissions calculation (e.g. EnergyConsumptionGridElectricity, EnergyConsumptionGas)

frequency

<string> defining the frequency to be considered in the emissions 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 emissions.


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