powered by
Cleans and validates a vector of characters, keeping only standard letter grades (A, B, C, D, E).
norm_letter(x)
A character vector of normalized grades (A-E) or NA.
A vector, typically character.
norm_letter(c(" a ", "B", "c", "F", "d", NA))
Run the code above in your browser using DataLab