Learn R Programming

SmartMeterAnalytics (version 1.1.1)

calc_features60_consumption: Calculates features from 15-min smart meter data

Description

Calculates features from 15-min smart meter data

Usage

calc_features60_consumption(B, rowname = NULL, replace_NA_with_defaults = TRUE)

Value

a data.frame with the calculated features as columns and a specified rowname, if given the row name of the resulting feature vector

Arguments

B

a vector with length 24*7 = 168 measurements in one day in seven days a week

rowname

the row name of the resulting feature vector

replace_NA_with_defaults

replaces missing (NA) or infinite values that may appear during calculation with default values

Author

Konstantin Hopf konstantin.hopf@uni-bamberg.de

Examples

Run this code
# Create a random time series of 60-minute smart meter data (168 measurements per week)
smd <- runif(n=168, min=0, max=2)
# Calculate the smart meter data features
calc_features60_consumption(smd)

Run the code above in your browser using DataLab