switch.dating: Switch values where dating is in wrong order (internal)
Description
Requires a data.frame with 2 numeric variables in the
3rd and 4th column: minimum date (int/numeric) and
maximum date (int/numeric) as used in [datsteps()].
Usage
switch.dating(DAT_df)
Value
The same data.frame with the dating values which were in wrong order
switched.
Arguments
DAT_df
a data.frame with 4 variables in this order: ID, group,
minimum date (int/num), maximum date (int/num)