Skip to contents

Reorders an SLF individual file dataframe so that its columns appear in the standard schema order used by the createslf package.

Usage

order_indiv_cols(individual_file)

Arguments

individual_file

A dataframe representing the SLF individual file. Must contain the expected variables; any extra columns will be dropped.

Value

The input dataframe with its columns reordered into the standard SLF individual file order.

Details

This ensures a consistent column structure across all years of data.

New variables added to SLFs should also be added here to maintain consistency across years.

See also

Other createslf schema functions: order_ep_cols()

Examples

if (FALSE) { # \dontrun{
df <- read.csv("my_episode_file.csv")
df_ordered <- order_ep_cols(df)
} # }