Skip to contents

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

Usage

order_ep_cols(episode_file)

Arguments

episode_file

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

Value

The input dataframe with its columns reordered into the standard SLF episode 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_indiv_cols()

Examples

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