Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


gRapHD (version 0.2.5)

convData: Converts dataset

Description

Converts a dataset to a structure required by other functions.

Usage

convData(dataset)

Arguments

dataset

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

Value

List:

dataset

Matrix.

numCat

Vector with the number of levels in each variable (0 if continuous).

vertNames - vector with the original vertices' names.

Details

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

Examples

Run this code
# NOT RUN {
data(dsDiscr)
ds <- convData(dsDiscr)
# }

Run the code above in your browser using DataLab