char2fact | R Documentation |
Converts characters to factors
char2fact(x, n = 5)
## Default S3 method:
char2fact(x, n = 5)
## S3 method for class 'character'
char2fact(x, n = 5)
## S3 method for class 'factor'
char2fact(x, n = 5)
## S3 method for class 'data.frame'
char2fact(x, n = 5)
x |
A vector of characters |
n |
The limit to the number of unique values for the factor |
fact2char()
Other factors:
as_ordered()
,
drop_levels()
,
fact()
,
fact2char()
,
fact_na()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.