ReadSparseMatrix: Reads sparse matrixes from *.lrn files.

Description Usage Arguments Value Author(s) See Also

Description

Zum Lesen von duenn besetzten Matrizen, die in *.lrn-Files gespeichert sind. (Gegebenenfalls mit ergaenzender *.names-Datei.)

Usage

1
ReadSparseMatrix(FileNameWithoutExt, InDirectory)

Arguments

FileNameWithoutExt

String, name of the file to be written. Without extention!

InDirectory

the directory where to read from; if not given: current dir.

Value

A list of:

ZeilenInd

numeric vector. index of rows that contain non-zero entries

SpaltenInd

numeric vector. index of columns that contain non-zero entries corresponding to ZeilenInd such that Matrix[ZeilenInd, SpaltenInd]==non-zero

Inhalt

numeric vector. Containing the values of the sparseMatrix at corresponding ZeilenInd and SpaltenInd.

Dimension

numeric vector. Dimensions of the complete sparseMatrix. Default: c(max(ZeilenInd),max(SpaltenInd))

Header

string vector. Header for columns (including Key).

Key

numeric vector: unique key for each line

DimNames

OPTIONAL OUTPUT: If FileNameWithoutExt.names exists: string list. Names of the complete sparseMatrix fitting Dimension. Must not be quadratic. Must not be of the same length as ZeilenInd (iff there are rows containing only zeros). First list element are rownames, second columnnames.

Author(s)

CL

See Also

WriteSparseMatrix()


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