powered by
This function converts a vector to the 'qe.code' class. If the vector is a factor, it is first converted to a character vector.
as.qe.code(x)
The modified vector with the 'qe.code' class.
A vector. The vector to be converted to 'qe.code' class.
vec <- factor(c("A", "B", "C")) vec <- as.qe.code(vec) class(vec) # Should show 'qe.code' along with other classes
Run the code above in your browser using DataLab