translate_levels: Helper function: translate levels

View source: R/spotTransform.R

translate_levelsR Documentation

Helper function: translate levels

Description

Translate existing levels of a factor into new levels.

Usage

translate_levels(x, translations)

Arguments

x

a factor vector to be translated

translations

a named list that specifies the translation: list(newlevel=c(oldlevel1,oldlevel2,etc)).

Value

translated factor


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