enterTable {CoCoRaw}R Documentation

Enter a table of counts of the tables formed by cross classifying discrete variables

Description

Enter a table of counts of the tables formed by cross classifying discrete variables. If the input is a vector of the counts the table has to be declared by enterNames before the use of this function. An array of counts with dimnames can be entered by enterTable without first specifying the variables in the CoCo object.

Usage

enterTable(counts, silent = TRUE, setslot = TRUE, missing = NULL, 
           data = NULL, object = .object.of.thing(data = data, ...), ...)

Arguments

counts Some integers, either a vector or a object of class "array". If counts is a vector then the variables should be defined in the CoCo object by enterNames. If counts is of class "array" then the names and number of levels for the variables are extracted from the argument counts.
silent Logical, is silent CoCo will be more quiet about the cases read.
missing A numeric vector of length equal to the number of variables. If counts is of class "array" and missing is not "NULL" then missing will define missing levels as enterNames.
setslot See enterNames.
data See exportCoCo.
object See exportCoCo.
... Additional arguments to generate the CoCo object from the data argument. See propertyModel.

Value

TRUE

Author(s)

Jens Henrik Badsberg

References

Badsberg, J.H.: A guide to CoCo, JSS, 2001 ( http://www.jstatsoft.org/v06/i04/ ) and Badsberg, J.H.: Xlisp+CoCo, Aalborg University, 1996.

See Also

enterNames.

Examples

library(CoCo);
data(Reinis);
CoCoObject <- makeCoCo();
enterTable(Reinis, object = CoCoObject);

endCoCo(object = CoCoObject);

library(CoCo);
data(Byssinosis38);
CoCoObject <- makeCoCo();
enterTable(Byssinosis38, object = CoCoObject);

endCoCo(object = CoCoObject);

[Package CoCoRaw version 0.1.6.5 Index]