write.mldr {mldr.datasets} | R Documentation |
Export an mldr object or set of mldr objects to different file formats
Description
Writes one or more files in the specified formats with the content of the mldr
or mldr.folds
given as parameter
Usage
write.mldr(mld, format = c("MULAN", "MEKA"), sparse = FALSE,
basename = ifelse(!is.null(mld$name) && nchar(mld$name) > 0,
regmatches(mld$name, regexpr("(\\w)+", mld$name)), "unnamed_mldr"),
noconfirm = FALSE, ...)
Arguments
mld |
The |
format |
A vector of strings stating the desired file formats. It can contain the values |
sparse |
Boolean value indicating if sparse representation has to be used for ARFF-based file formats |
basename |
Base name for the files. |
noconfirm |
Use TRUE to skip confirmation of file writing |
... |
Additional options for the exporting functions (e.g. |
Examples
## Not run:
library(mldr.datasets)
write.mldr(emotions, format = c('CSV', 'KEEL'))
## End(Not run)
[Package mldr.datasets version 0.4.2 Index]