coercion-factor: Factor coercion

Description Usage Arguments Details Value Methods Examples

Description

Coercion functions for creating factors from other existing objects.

Usage

1
2
3

Arguments

x

A vector of data.

...

Other arguments passed on to methods.

Details

These functions override non-generic factor coercion functions provided in base so that packages can provide methods for different data types. The default methods call the base versions.

Value

For as.factor(), a factor. For as.ordered(), an ordered factor.

Methods

as.factor()

\Sexpr[stage=render,results=rd]{generics:::methods_rd("as.factor")}

as.ordered()

\Sexpr[stage=render,results=rd]{generics:::methods_rd("as.ordered")}

Examples

1
2

generics documentation built on May 2, 2019, 9:22 a.m.