classified.factor {yamlet} | R Documentation |
Create Classified from Factor
Description
Creates classified from factor. Uses classified.default
,
but supplies existing levels by default.
Usage
## S3 method for class 'factor'
classified(
x = character(),
levels,
labels,
exclude = NA,
ordered = is.ordered(x),
nmax = NA,
token = character(0),
...
)
Arguments
x |
see |
levels |
passed to |
labels |
passed to |
exclude |
see |
ordered |
see |
nmax |
see |
token |
informative label for messages |
... |
ignored |
Value
'classified' 'factor'
See Also
Other classified:
[.classified()
,
[<-.classified()
,
[[.classified()
,
[[<-.classified()
,
as.integer.classified()
,
c.classified()
,
classified.classified()
,
classified.data.frame()
,
classified.default()
,
classified.dvec()
,
classified()
,
desolve.classified()
,
unclassified.classified()
,
unclassified.data.frame()
,
unclassified()
Examples
a <- factor(c('c','b','a'))
levels(classified(a))
attr(classified(a), 'codelist')
[Package yamlet version 1.0.3 Index]