knitr::opts_chunk$set(echo = TRUE) library(evprof)
Most functions from {evprof}
and {evsim}
packages use an input parameter called sessions
. This parameter requires to be a tibble
, every row being an EV charging session and every column being a variable defining the charging characteristics in terms of time, power, energy, location, etc.
These variables must have standard names in order to use the functions without errors. The names of the variables used in evprof
and evsim
functions are provided by the object sessions_feature_names
:
evprof::sessions_feature_names
Brief description of the mandatory variables to perform the profiling and modelling of EV user profiles:
Brief description of the optional variables:
ConnectionStartDateTime
).Additionally to these variables, the sessions
tibble will incorporate other variables from the methodology (e.g. Disconnection
, Timecycle
, Cluster
, Profile
, etc.) and every use case may have specific variables like the ID of users, postalcode, etc. Of course that there is no problem to add extra variables to the data set, the only condition is that the variables described above must have these specific names.
Some notes about these variables:
datetime
variables (ConnectionStartDateTime
, ConnectionEndDateTime
, ChargingStartDateTime
and ChargingEndDateTime
) must be in the time zone of the corresponding city. This can be set using function lubridate::with_tz
.To create time-periods variables (ConnectionHours
and ChargingHours
) it is recommended to use the following function:
as.numeric(ConnectionEndDateTime - ConnectionStartDateTime, units = "hours")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.