Extracts and combines the levels from one or more vectors or factors. Non-factor inputs are coerced to factors before extracting levels.
Details
Each input is coerced to a factor (if not already one), and its levels are extracted. The union of all levels is returned. Unused levels of factor inputs are preserved.
By default, missing values (NA) are not included as a level.
Set na = TRUE to include them; NA is then placed last
when sorting.
The order of levels follows their first occurrence unless
sorted = TRUE.
See also
Other data.recode:
asBinary(),
dummy(),
mReplace(),
nf(),
recodeX(),
revCode(),
stringsAsFactors()
