Combines classified factor, retaining attributes.
Attributes other than levels and codelist are taken
from the first argument if reconcile_attributes is FALSE;
otherwise remaining attributes are reconciled (default as of 1.3.1).
Attribute 'levels' is
supplied by next method. Attribute 'codelist'
is the combined codelists in sequence of
all (dots) arguments, after silently removing
exact duplicates. If any names are duplicated,
the entire codelist is replaced by the effective levels,
with optional warning.
Arguments
- ...
passed to next method
- recursive
passed to unlist() internally
- warn_conflicted
logical: warn if any duplicated codelist names?
- reconcile_attributes
logical: reconcile attribute lists (other than levels and attributes) if TRUE (default as of 1.3.1); else take attributes from first argument (former behavior)
See also
Other classified:
[.classified(),
[<-.classified(),
[[.classified(),
[[<-.classified(),
as.integer.classified(),
classified(),
classified.classified(),
classified.data.frame(),
classified.default(),
classified.dvec(),
classified.factor(),
codify.default(),
desolve.classified(),
unclassified(),
unclassified.classified(),
unclassified.data.frame()
Examples
a <- classified(letters[1:3])
b <- classified(letters[3:5])
c <- c(a,b)
c
#> [1] a b c c d e
#> attr(,"codelist")
#> [1] a b c d e
#> Levels: a b c d e
class(c)
#> [1] "factor"