powered by
Writes one or more files in the specified formats with the content of the mldr or mldr.folds given as parameter
mldr
mldr.folds
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, ...)
The mldr/mldr.folds object to be exported
mldr/mldr.folds
A vector of strings stating the desired file formats. It can contain the values 'MULAN', 'MEKA', 'KEEL', 'CSV' and 'LIBSVM'
'MULAN'
'MEKA'
'KEEL'
'CSV'
'LIBSVM'
Boolean value indicating if sparse representation has to be used for ARFF-based file formats
Base name for the files. 'unnamed_mldr' is used by default
'unnamed_mldr'
Use TRUE to skip confirmation of file writing
Additional options for the exporting functions (e.g. chunk_size, the number of instances to write at a time)
chunk_size
# NOT RUN { library(mldr.datasets) write.mldr(emotions, format = c('CSV', 'KEEL')) # } # NOT RUN { # }
Run the code above in your browser using DataLab