factorp: Factor creation function that preserves column attributes.

View source: R/table1.R

factorpR Documentation

Factor creation function that preserves column attributes.

Description

Factor creation function that preserves column attributes.

Usage

factorp(x, ...)

Arguments

x

An object to be converted to a a factor.

...

Further arguments passed to factor.

Value

An factor with the attributes of x other than "class" and "levels" preserved.

See Also

factor


benjaminrich/table1 documentation built on June 10, 2025, 10:43 p.m.