CategoricalDataRaw | R Documentation |
CategoricalDataRaw creates an data object which can be used as source object to instantiate categorical base learner.
x |
( |
data_identifier |
( |
S4 object.
CategoricalDataRaw$new(x, data_identifier)
This class doesn't contain public fields.
$getData()
: () -> stop()
Throws error because no representation is calculated.
$getRawData()
: () -> character()
$getIdentifier()
: () -> character(1)
$getDataType()
: () -> character(1)
# Sample data:
x = sample(c("one","two", "three"), 20, TRUE)
# Create new data object:
data_obj = CategoricalDataRaw$new(x, "cat_raw")
# Get data and identifier:
data_obj$getRawData()
data_obj$getIdentifier()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.