write_kstructure: Write a knowledge structure file

Description Usage Arguments Details Author(s) References See Also Examples

Description

Write a knowledge structure to a file. The file formats are described in the kstIO-package information page.

Usage

1
  write_kstructure(x, filename, format = "SRBT")

Arguments

x

The data to be written, either a binary matrix or an object of kstructure class.

filename

A character string specifying the name of the base file.

format

Specification of the files format. Can be "SRBT" (default), "KST", or "matrix".

Details

The format values "SRBT", "KST", and "matrix" refer to the different generations of file formats described in kstIO-package.

Author(s)

Cord Hockemeyer cord.hockemeyer@uni-graz.at

References

Hockemeyer, C. (2001). KST Tools User Manual (2nd ed.). https://kst.hockemeyer.at/techreports/KST-Tools_TechRep_FWF01.pdf.

Poetzi, S. \& Wesiak, G. (2001). SRbT Tools User Manual. https://kst.hockemeyer.at/techreports/SRBT-Tools_TechRep_FWF01.pdf

See Also

kstructure, kstIO-package

Examples

1
2
3
4
5
6
7
8
# Obtain data to write from the 'pks' package
library(kst)
data(DoignonFalmagne7)
kst <- kstructure(as.pattern(DoignonFalmagne7$K, as.set=TRUE))
# Write structure to file
write_kstructure(kst, "DF7.struct") # Write in (default) SRBT format
# Write the matrix directly in (old) KST format
write_kstructure(DoignonFalmagne7$K, "DF7.struct", "KST") 

kstIO documentation built on May 1, 2019, 10:16 p.m.