reformat_sex(c("F", "female", NA, "MALES"))
## values supplied for 'except'
reformat_sex(c("Fem", "Other", "Male", "M"),
except = c("Other", "Diverse"))
## return an ordinary character vector
reformat_sex(c("F", "female", NA, "MALES"),
factor = FALSE)
Run the code above in your browser using DataLab