Learn R Programming

rENA (version 0.3.0)

as.qe.code: Convert a vector to 'qe.code' class

Description

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)

Value

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

Arguments

x

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

Examples

Run this code
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