write.adh | R Documentation |
Exports data into ADH format. This format is based on two files: 'adh' that contains ADX header and 'csv' that contains the data.
write.adh(x, file = "", target = NA, chunk_size = 100000, zip = FALSE)
x |
data frame with data |
file |
exported filename |
target |
sets target attribute in ADH 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. |
zip |
whether to create zip archive. |
## Not run: ###dontrunbegin
# create artificial data
adata <- artificial.data(rnd_features = 1000)
#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.
adata <- fix.data(adata)
write.adh(adata, file = file.path(tempdir(), "adata.adh"), target = "class")
## End(Not run)###dontrunend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.