Light wrapper function for converting a dataframe column to an ordered factors.
Source:R/utils.R
order_col.Rd
Wraps dplyr::mutate()
. Useful for pipe chains.
Value
A copy of the data frame with the col
column transformed
into an ordered factor with levels given by levels
.