Factor: 'Factor'

View source: R/variable.R

FactorR Documentation

Factor

Description

Converts to a factor, but retains the label attribute. Automatically combines duplicate levels, with a warning (factor instead throws an error).

Usage

Factor(x, ...)

Arguments

x

A vector of data, usually taking a small number of distinct values.

...

Further arguments passed to factor.

Details

If the variable is already a factor, removes any empty levels


NumbersInternational/flipTransformations documentation built on Feb. 26, 2024, 6:43 a.m.