WriteNSM: Write named sparse matrix

Description Usage Arguments Author(s) See Also

Description

Saves a named sparese matrix to disk using ".NSMrow.names", ".NSMcol.names" and ".NSMmat.lrn"

Usage

1
2
3
WriteNSM(FilenameWithoutExt, Matrix, LineKey, LineHeader,

 ColumnKey, ColumnHeader, OutDirectory, Comments)

Arguments

FilenameWithoutExt

Filename for the saved matrix without extension

Matrix

The sparse matrix. Must be a sparse matrix from the Matrix package

LineKey

Optional: Vector of keys for all rows. Defaults to the vector 1:n for a number of lines n

LineHeader

Optional: Vector of strings. Names for all rows. Defaults to: paste0("R",LineKey)

ColumnKey

Optional: Vector of keys for all colums. If not given and matrix dimensions are eqal, LineKey is taken as ColumnKey. Otherwise defaults to the vector 1:n for a number of lines n

ColumnHeader

Optional: Vector of strings. Names for all columns. If not given and matrix dimensions are eqal, LineHeader is taken as Columnheader. Otherweise defaults to paste0("C",LineKey)

OutDirectory

Directory where the files should be saved

Comments

String containing comments for the sparse matrix

Author(s)

Felix Pape

See Also

WriteLRN, WriteNAMES


aultsch/DataIO documentation built on May 14, 2019, 10:34 p.m.