convData {gRapHD}R Documentation

Convert dataset

Description

Convert a dataset to a structure required by other functions.

Usage

  convData(dataset)

Arguments

dataset matrix or data frame (discrete varibles must be factors).

Details

Convert the dataset to the structure required by the other functions.

Value

List:

dataset Matrix.
varType Vector: 0 for continuous, 1 for discrete.
numCat Vector with the number of levels in each variable (0 if continuous).

Author(s)

Gabriel Coelho Goncalves de Abreu (Gabriel.Abreu@agrsci.dk)
Rodrigo Labouriau (Rodrigo.Labouriau@agrsci.dk)
David Edwards (David.Edwards@agrsci.dk)

Examples

  data(dsDiscr)
  ds <- convData(dsDiscr)

[Package gRapHD version 0.1.0 Index]