View source: R/charging_infrastructure.R
add_charging_infrastructure | R Documentation |
Variable ChargingStation
and Socket
will be assigned to the sessions
tibble with a name pattern being: names_prefix
+ "CHS" + number
add_charging_infrastructure(
sessions,
resolution = 15,
min_stations = 0,
n_sockets = 2,
names_prefix = NULL,
duration_th = 0
)
sessions |
tibble, sessions data set in standard format marked by |
resolution |
integer, time resolution in minutes |
min_stations |
integer, minimum number of charging stations to consider |
n_sockets |
integer, number of sockets per charging station |
names_prefix |
character, prefix of the charging station names (optional) |
duration_th |
integer between 0 and 100, minimum share of time (in percentage)
of the "occupancy duration curve" (see function |
tibble
# Assign a `ChargingStation` to every session according to the occupancy
sessions_infrastructure <- add_charging_infrastructure(
sessions = head(evsim::california_ev_sessions, 50),
resolution = 60
)
print(unique(sessions_infrastructure$ChargingStation))
# Now without considering the occupancy values that only represent
# a 10% of the time
sessions_infrastructure <- add_charging_infrastructure(
sessions = head(evsim::california_ev_sessions, 50),
resolution = 60, duration_th = 10
)
print(unique(sessions_infrastructure$ChargingStation))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.