Learn R Programming

rENA (version 0.3.0)

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

Description

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

Usage

as.qe.horizon(x)

Value

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

Arguments

x

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

Examples

Run this code
vec <- factor(c("A", "B", "C"))
vec <- as.qe.horizon(vec)
class(vec) # Should show 'qe.horizon' along with other classes

Run the code above in your browser using DataLab