Aggregate a data.frame in long format with a column containing steps of each session For instance the function can be used with a frame of the form Unique ID - Step - Value 1 - ... -Value N
aggregate_sessions_to_path(data, step_col = "step", id_col = "ID",
values_cols = NULL, agg_function_path = sum, agg_function_session = sum,
sep = "->")
A dataframe
The name of the column containig the steps. The steps are assumed to be ordered
Column containing the unique identifier of each session
Names of the other columns to keep. Default: NULL
Aggregation function on a path level
Aggregation function on a session level
String used to separate the different steps. Default: "->"
A data.table with the columns specified in count_col, value_cols and one column per step in the path