Description Usage Arguments Details Value Warning Examples
The function attempts to change vector
class
from factor
to
integer
, double
or
character
.
1 | defactorize(x)
|
x |
A factor. |
The function tries to handle factors of unknown content by attempting to apply different classes and looking for warnings.
A vector of equivalent length of class numeric, integer or character.
The function disregards levels
information available in
vectors of the factor
class.
1 2 | defactorize(as.factor(c("a", "b")))
defactorize(as.factor(c("a", "b", runif(n = 10))))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.