Skip to contents

If there are any historic results in the dataset (found in some of the non- PSNUxIM tabs), we want to separate these from the target values to ensure the dataset is tidy and results/targets will not be indavertently aggregated. The reshape will create a cumulative column if results exist in the provided dataframe.

Usage

pivot_results(df)

Arguments

df

data frame after it's been aggregated

Value

data frame with a cumulative column (when/where results exist)