Skip to contents

'reshape_monthly_wide' reshapes a given data frame with diseases for rows and months for columns.

Usage

reshape_monthly_wide(df)

Arguments

df

Dataframe. Data to reshape with months as columns.

Value

The reshaped data frame.

Examples

df <- data.frame(disease=c("A","B"), month=c(1,2), counts=c(5,6))
reshape_monthly_wide(df)
#>   disease Jan Feb
#> 1       A   5   0
#> 3       B   0   6