Helper function: transform "long" to "wide"

long_to_wide(df)

Arguments

df

data frame in long format (as retrieved by kwb.pilot::group_datetime)