Skip to contents

This function converts a vector to the 'qe.code' class. If the vector is a factor, it is first converted to a character vector.

Usage

as.qe.code(x)

Arguments

x

A vector. The vector to be converted to 'qe.code' class.

Value

The modified vector with the 'qe.code' class.

Examples

vec <- factor(c("A", "B", "C"))
vec <- as.qe.code(vec)
class(vec) # Should show 'qe.code' along with other classes
#> [1] "qe.code"   "character"