Description Usage Arguments Value See Also Examples
Put character vectors, columns of a data.frame or list elements as factor if they are character strings
or optionally if they are logicals
1 2 3 4 5 6 7 8 9 10 11 12 13 | factorise(x, logicals = FALSE, ...)
## Default S3 method:
factorise(x, logicals = FALSE, ...)
## S3 method for class 'character'
factorise(x, logicals = FALSE, ...)
## S3 method for class 'data.frame'
factorise(x, logicals = FALSE, ...)
## S3 method for class 'list'
factorise(x, logicals = FALSE, ...)
|
x |
a character vector, a data.frame or a list |
logicals |
logical indicating if logical vectors should also be converted to factors. Defaults to FALSE. |
... |
optional arguments passed on to the methods |
The updated x vector/data.frame or list where the character vectors or optionally logical elements are converted to factors
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.