write_kdata: Write a data set to file

write_kdataR Documentation

Write a data set to file

Description

Write a data set to file

Usage

write_kdata(x, filename, format = NULL, sep = ",")

Arguments

x

Data set (only in matrix (kmdata) format)

filename

Name of the file to be written

format

File format

sep

Cell separator for CSV files

If the file format is not specified, write_base() looks at the filename extension. If it is some spreadsheet type (CSV, ODS, or XLSX), the respective file format is chosen, otherwise KST is selected.

See Also

Other Functions for reading and writing families of sets: read_kbase(), read_kdata(), read_kfamset(), read_kspace(), read_kstructure(), write_kbase(), write_kfamset(), write_kspace(), write_kstructure()

Examples

head(kstMatrix::xpl$data)
tempfile <- paste0(tempdir(), "/testdata.csv")
write_kdata(kstMatrix::xpl$data, tempfile)
cat(head(readLines(tempfile)), sep='\n')



kstIO documentation built on Sept. 7, 2026, 9:06 a.m.