write_kbase: Write a basis to file

write_kbaseR Documentation

Write a basis to file

Description

Write a basis to file

Usage

write_kbase(x, filename, format = NULL, sep = ",", enforce = TRUE)

Arguments

x

Basis (in set (kbase) or matrix (kmbasis) format)

filename

Name of the file to be written

format

File format

sep

Cell separator for CSV files

enforce

Should basis properties be enforced (only for matrix form)?

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

See Also

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

Examples

kstMatrix::xpl$basis
tempfile <- paste0(tempdir(), "/test.bas")
write_kbase(kstMatrix::xpl$basis, tempfile, format="SRBT")
cat(readLines(tempfile), sep='\n')


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