enterDataFrame {CoCoRaw}R Documentation

Enter a data.frame into a CoCo object

Description

Enter a data frame into a CoCo object with declaring the variables.

Usage

enterDataFrame(data.frame, to.factor = NULL, missing.values = c("."), 
               setslot = TRUE, data = NULL, 
               object = .object.of.thing(data = data, ...), ...)

Arguments

data.frame A object of class "data.frame". The argument data.frame is with continuous and discrete variables as respectively numerics and factors. The names of the variables are extracted from the column names of the data.frame.
to.factor A numeric vector. Numeric columns of data.frame with indices in the argument to.factor are converted into factors.
missing.values A vector or list of values to be considered as missing values. If the argument missing.values is not a list then values in missing.values are considered as missing values for all the discrete variables, that is the factors. If missing.values is a list, then it should have length equal to the number of columns of the data.frame, and values of the i-the variable are considered as missing if they are among the values of the i-te element of missing.values.
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.

See Also

enterNames.

Examples

library(CoCoCg);
data(Rats);
CoCoObject <- makeCoCoCg();
enterDataFrame(Rats, object = CoCoObject);

endCoCo(object = CoCoObject);

[Package CoCoRaw version 0.1.6.8 Index]