ChoR.loadData {ChoR}R Documentation

[INTERNAL] Load the data from a dataframe (and with an optionnal cardinality vector)

Description

Loads the data from x, which should be a dataframe (else, a conversion to a dataframe is attempted).

Usage

ChoR.loadData(x, card = NULL)

Arguments

x

A dataframe with categorical data; column names are the name of the attributes.

card

A vectore containing the cardinality of the attributes (position wise).

Details

Loads the data from x, which should be a dataframe (else, a conversion to a dataframe is attempted). The data must be categorical, each column being an attribute. The optionnal argument card should be a vector representing the cardinality of each attribute (position wise). If it is provided, its size must be equal to the number of attributes. Else, its values will be computed from the data, and the cardinality for an attribute will be accurate only if all its possible values appear at least once in the data.

Value

A list how two .jarray references (one for the dimension, one for the data) and the dataframe


[Package ChoR version 0.0-4 Index]