Learn R Programming

evsim (version 1.7.1)

expand_sessions: Expand sessions along time slots

Description

Every session in sessions is divided in multiple time slots with the corresponding Power consumption, among other variables.

Usage

expand_sessions(sessions, resolution)

Value

tibble

Arguments

sessions

tibble, sessions data set in standard format marked by evprof package

resolution

integer, time resolution (in minutes) of the time slots

Details

The Power value is calculated for every time slot according to the original required energy. The columns PowerNominal, EnergyRequired and FlexibilityHours correspond to the values of the original session, and not to the expanded session in every time slot. The column ID shows the number of the time slot corresponding to the original session.

Examples

Run this code
library(dplyr)

sessions <- head(evsim::california_ev_sessions, 10)
expand_sessions(
  sessions,
  resolution = 60
)

Run the code above in your browser using DataLab