fct_to_int_cpp | R Documentation |
This function converts a factor (an integer vector with a "levels" attribute) to its underlying integer representation by stripping away the factor's levels and class attributes. By default, the function does not modify the input by reference (a copy is made), but if 'inplace' is set to 'true', the function will modify the input directly.
fct_to_int_cpp(x, inplace = FALSE)
x |
A factor object. |
inplace |
Logical flag indicating whether to modify the input in place (default: false). |
An integer vector containing the underlying integer codes without factor attributes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.