Learn R Programming

rmcfs (version 1.1.0)

write.adx: Writes data to ADX

Description

Exports data into ADX format.

Usage

write.adx(x, file="", target = NA, chunk.size=100000)

Arguments

x
data frame with data
file
exported filename
target
sets target attribute in ADX format. Default value is NA what refers to the last column.
chunk.size
defines size of chunk (number of cells) that are processed and exported. The bigger the value, the function is faster for small data and slower for big data.

Examples

Run this code
# Load rmcfs library.
  library(rmcfs)
  
  # Load alizadeh dataset.
  data(alizadeh)
  d <- alizadeh
  
  #Fix input data to be consistent with ARFF and ADX formats. 
  #It is not necessary but for some data can help to export in proper format.
  d <- fix.data(d)
  write.adx(d, file = paste0(tempdir(), "/alizadeh.adx"), target = "class")

Run the code above in your browser using DataLab