View source: R/harmonised-writing.R
| calculate_indicator | R Documentation | 
This function calculates a large list of energy-related KPIs considering a set predicted and real energy measurements. It only accounts for KPI that can be time-aggregable, so input and output data are time series.
calculate_indicator(
  data,
  indicator,
  consumptionColumn,
  baselineConsumptionColumn,
  energyPriceColumn,
  carbonEmissionsColumn,
  buildingGrossFloorArea,
  heatingDegreeDays18Column,
  coolingDegreeDays21Column
)
data | 
 <data.frame> that contains all resultant time series.  | 
indicator | 
 <string> defining the KPI to calculate. Possible values: EnergyUse, EnergyUseIntensity, EnergyUseSavings, EnergyUseSavingsRelative, EnergyUseSavingsIntensity, EnergyCost, EnergyCostIntensity, EnergyCostSavings, EnergyCostSavingsRelative, EnergyCostSavingsIntensity, EnergyEmissions, EnergyEmissionsIntensity, EnergyEmissionsSavings, EnergyEmissionsSavingsRelative, EnergyEmissionsSavingsIntensity, HeatingDegreeDays, CoolingDegreeDays  | 
consumptionColumn | 
 <string> defining the energy consumption column name in data.  | 
baselineConsumptionColumn | 
 <string> defining the counterfactual energy consumption column name in data.  | 
energyPriceColumn | 
 <string> defining the column in data related with the price of energy consumption.  | 
carbonEmissionsColumn | 
 <string> defining the column in data related with the CO2 emissions factor of energy consumption.  | 
buildingGrossFloorArea | 
 <float> defining the gross floor area of the building.  | 
heatingDegreeDays18Column | 
 <string> defining the column in data related with HDD with 18º as base temperature.  | 
coolingDegreeDays21Column | 
 <string> defining the column in data related with CDD with 21º as base temperature.  | 
<data.frame> with a column 'ind' specifying the indicator time series and an optional 'weights' column specifying the weights that should be considered when time-aggregate the results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.