numberVariates {CoCoRaw} | R Documentation |
Return the number of variables entered into the CoCo object.
numberVariates(full = FALSE, data = NULL, object = .object.of.thing(data = data, ...), ...)
full |
Logical, if full is TRUE then the number
of specified variables is returned, that is
number without setUseVariables . |
data |
See exportCoCo . |
object |
See exportCoCo . |
... |
Additional arguments to generate the CoCo object
from the data argument. See propertyModel . |
Numeric
Jens Henrik Badsberg
Badsberg, J.H.: A guide to CoCo, JSS, 2001 ( http://www.jstatsoft.org/v06/i04/ ) and Badsberg, J.H.: Xlisp+CoCo, Aalborg University, 1996.
setUseVariables
and showOptions
.
library(CoCo); data(Reinis); CoCoObject <- makeCoCo(); enterTable(Reinis, object = CoCoObject); numberVariates(object = CoCoObject); Specification <- returnVariableDescription(object = CoCoObject); setUseVariables(paste(Specification[[1]][c(1,3,4,6)], collapse = ""), object = CoCoObject); enterTable(c(Reinis), object = CoCoObject); numberVariates(object = CoCoObject); numberVariates(full = TRUE, object = CoCoObject); showOptions("specification", object = CoCoObject); endCoCo(object = CoCoObject); # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # library(CoCoCg); data(Rats); CoCoObject <- makeCoCoCg(); enterDataFrame(Rats, object = CoCoObject); numberVariates(object = CoCoObject); numberVariates(full = TRUE, object = CoCoObject); endCoCo(object = CoCoObject); # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # library(CoCo); data(Byssinosis38); CoCoObject <- makeCoCo(); enterTable(Byssinosis38, object = CoCoObject); numberVariates(object = CoCoObject); endCoCo(object = CoCoObject);