powered by
TrimVar() is a function that allows you to remove whitespace inside the strings of a vector.
TrimVar()
TrimVar(data, trim.vector)
This function returns a vector removing trailing and leading spaces inside the original vector.
dataset
vector of variables on the dataset to be trimmed
head(m0$TrimVar(cp025q01, "event"))
Run the code above in your browser using DataLab