Skip to contents

Ensures chronic absenteeism data is in tidy (long) format with standard column names and entity flags. The processed absence data is already in long format (one row per entity per subgroup), so this function adds entity identification flags and ensures consistent output structure.

Usage

tidy_absence(df)

Arguments

df

A data frame of processed chronic absenteeism data

Value

A tidy data frame with entity flags

Examples

if (FALSE) { # \dontrun{
wide_data <- fetch_absence(2024, tidy = FALSE)
tidy_data <- tidy_absence(wide_data)
} # }