ReadNSM: Read named sparse matrix

Description Usage Arguments Value Note Author(s) See Also

Description

Loads a named sparese matrix from disk using ".NSMrow.names", ".NSMcol.names" and ".NSMmat.lrn"

Usage

1
ReadNSM(FilenameWithoutExt, InDirectory)

Arguments

FilenameWithoutExt

Filename without extension

InDirectory

Optional: Directory of the file. Defaults to getwd()

Value

A list containing:

matrix

The sparse matrix read from the disk as dgCMatrix S4 object

LineKey

Vector of keys for all rows

LineHeader

Vector of strings. Names for all rows

ColumnKey

Vector of keys for all colums

ColumnHeader

Vector of strings. Names for all columns

Comments

String containing comments for the sparse matrix

Note

Due to restrictions of the lrn format precision losses for floating point numbers can occur. The maximum precision is 13 digits.

Author(s)

Felix Pape

See Also

ReadLRN, ReadNAMES


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