mldr_transform {mldr} | R Documentation |
Transformns an MLDR into binary or multiclass datasets
Description
Transforms an mldr
object into one or serveral binary or multiclass datasets, returning them as data.frame
objects
Usage
mldr_transform(mldr, type = "BR", labels)
Arguments
mldr |
The mldr object to transform |
type |
Indicates the type of transformation to apply. Possible types are:
|
labels |
Vector with the label indexes to include in the transformation. All labels will be used if not specified |
Value
A list of data.frames containing the resulting datasets (for BR) or a data.frame with the dataset (for LP).
The result is no longer an mldr
object, but a plain data.frame
Examples
library(mldr)
emotionsbr <- mldr_transform(emotions, type = "BR")
emotionslp <- mldr_transform(emotions, type = "LP")
[Package mldr version 0.4.3 Index]