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

View source: R/qedata_classes.R

as.qe.horizonR Documentation

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)

Arguments

x

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

Value

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

Examples

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

rENA documentation built on Nov. 5, 2025, 5:50 p.m.