Description Usage Arguments Details Value See Also Examples
Extract or replace subsets of factors.
1 2 3 4 5 6 7 8 |
x |
a factor |
... |
a specification of indices – see |
drop |
logical. If true, unused levels are dropped. |
value |
character: a set of levels. Factor values are coerced to character. |
When unused levels are dropped the ordering of the remaining levels is preserved.
If value is not in levels(x), a missing value is
assigned with a warning.
Any contrasts assigned to the factor are preserved
unless drop = TRUE.
The [[ method supports argument exact.
A factor with the same set of levels as x unless drop = TRUE.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.