Get cumulative return on investment for specific period

get_roi_by_period(df_complete_panel, nb_period = NULL,
                         period_type = "max")

Arguments

df_complete_panel

A data frame containing the complete panel.

nb_period

An integer indicating the number of months. Default is NULL.

period_type

A single character string. Default max. Possible values max, weeks and months.

Value

A data frame containing the cumulative return on investment for a given period.