Learn R Programming

rmcfs (version 1.1.0)

export.result: Saves MCFS-ID result into set csv files

Description

Saves csv files with result obtained by the MCFS-ID.

Usage

export.result(mcfs_result, path, label = "rmcfs", save.rds = FALSE)

Arguments

mcfs_result
result of the MCFS-ID experiment returned by mcfs function.
path
path to the MCFS-ID result *.csv files.
label
label of the experiment and common name for output files.
save.rds
if = TRUE, saves all results data as additional *.rds file.

Examples

Run this code
### Set up java parameter and load rmcfs package
  options(java.parameters = "-Xmx4g")
  library(rmcfs)
  
  # create input data
  adata <- artificial.data(rnd.features = 10)
  info(adata)
  
  # Parametrize and run MCFS-ID procedure
  result <- mcfs(class~., adata, projections = 200, projectionSize = 4, 
                 cutoffPermutations = 5, finalCV = FALSE, finalRuleset = FALSE, 
                 threadsNumber = 2)

  # Export and import R result to/from files
  path <- tempdir()
  export.result(result, path = path, label = "artificial", save.rds = FALSE)
  result <- import.result(path = path, label = "artificial")

Run the code above in your browser using DataLab