Description Usage Arguments Details Value See Also Examples
Get and set names of classifications used by objects of class
Concordance
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | classificationFrom(object)
classificationFrom(object) <- value
classifications(object)
classifications(object) <- value
classificationTo(object)
classificationTo(object) <- value
## S4 method for signature 'ManyToOne'
classificationFrom(object)
## S4 method for signature 'Concordance'
classifications(object)
## S4 replacement method for signature 'Concordance'
classifications(object) <- value
## S4 method for signature 'ManyToOne'
classificationTo(object)
|
object |
Object of class |
value |
A character vector. |
classificationFrom
and classificationTo
can only be used with
concordances of class ManyToOne
, since the idea of a
'from' classification or 'to' classification is only defined for a
many-to-one concordance. classifications
can be used with concordances
of class ManyToOne
or OneToOne
.
value
has length 2 with function classifications
and length 1
with functions classificationFrom
or classificationTo
.
A character vector, or in the case of the replacement function, a concordance with new classification names.
The codes from a concordance can be extracted using
codes
.
1 2 3 4 5 6 7 8 | x <- cbind(c1 = c("a", "b", "c"), c2 = c("x", "y", "x"))
x <- Concordance(x)
x
classifications(x)
classifications(x)[1] <- "classif1"
classifications(x)
classificationFrom(x)
classificationTo(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.