convData {gRapHD} | R Documentation |
Convert a dataset to a structure required by other functions.
convData(dataset)
dataset |
matrix or data frame (discrete varibles must be factors). |
Convert the dataset to the structure required by the other functions.
List:
dataset |
Matrix. |
varType |
Vector: 0 for continuous, 1 for discrete. |
numCat |
Vector with the number of levels in each variable (0 if continuous). |
Gabriel Coelho Goncalves de Abreu (Gabriel.Abreu@agrsci.dk)
Rodrigo Labouriau (Rodrigo.Labouriau@agrsci.dk)
David Edwards (David.Edwards@agrsci.dk)
data(dsDiscr) ds <- convData(dsDiscr)