Description Usage Arguments Value Examples
If names contain character strings other than the levels in the old factor
and warning is set to TRUE
, a warning will be raised
1 2 3 4 5 6 | relevelsByNotNamedVec(
x,
refs,
missingLevels = c("pass", "warning", "error"),
unrecognisedLevels = c("warning", "pass", "error")
)
|
x |
A factor |
refs |
A unnamed vector. The values of the vector are levels of
|
missingLevels |
Actions taken in case existing levels are missing: 'pass', 'warning', or 'error'. |
unrecognisedLevels |
Actions taken in case unrecognised levels are found: 'pass', 'warning', or 'error'. |
A vector of factor
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.