mscale {psychotree} | R Documentation |
Extract/Replace Measurement Scale
Description
Generic functions for extracting and replacing the measurement scale from an object.
Usage
mscale(object, ...)
mscale(object) <- value
Arguments
object |
an object. |
... |
arguments passed to methods. |
value |
an object describing the measurement scale. |
Examples
## methods for "paircomp" data
pc <- paircomp(rbind(
c(2, 1, 0),
c(1, 1, -1),
c(1, -2, -1),
c(0, 0, 0)))
pc
## extract
mscale(pc)
## replace (collapse to >/=/< scale)
mscale(pc) <- sign(mscale(pc))
pc
[Package
psychotree version 0.9-0
Index]