factor_to_integer: Convert a factor to an integer representation

View source: R/helpfunctions_divide_matrices.R

factor_to_integerR Documentation

Convert a factor to an integer representation

Description

Convert a factor to an integer representation

Usage

factor_to_integer(x)

Arguments

x

a vector. If x is a factor it will be converted to integers as described below; otherwise x is returned unchanged.

Value

An integer vector when x is a factor, otherwise the original x.

Note

Used in extract_outcome_data().


JointAI documentation built on Jan. 30, 2026, 5:07 p.m.