creates factor from numeric vector and character vector as levels

Share:

Description

The CreateFactor function creates a factor from a numeric vector and a character vector for levels

Usage

1

Arguments

x

numeric vector containing the numeric indices of the levels

levels

character vector levels

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.