int2fact: Helper function: transform integer to factor

View source: R/spotTransform.R

int2factR Documentation

Helper function: transform integer to factor

Description

This function re-codes a factor with pre-specified factor levels, using an integer encoding as input.

Usage

int2fact(x, lvls)

Arguments

x

an integer vector (that represents factor vector) to be transformed

lvls

the original factor levels used

Value

the same factor, now coded with the original levels


SPOTMisc documentation built on Sept. 5, 2022, 5:06 p.m.