Helper function to convert a wave variable into an ordered factor

Helper function to convert a wave variable into an ordered factor for longZight objects.

refactor_wave(.data, subset = NULL)

# S3 method for longZight
refactor_wave(.data, subset = NULL)

Arguments

.data

A longZight object generated by load_long_data

subset

An optional vector of values to retain

Value

An longZight object with a modified wave variable.

Examples

if (FALSE) { mydata %>% load_long_data(IDind, WAVE) %>% refactor_wave(c(2008, 2010, 2012)) }