Factor creation function that preserves column attributes.

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