Description Usage Arguments Value Author(s) See Also
Zum Lesen von duenn besetzten Matrizen, die in *.lrn-Files gespeichert sind. (Gegebenenfalls mit ergaenzender *.names-Datei.)
1 | ReadSparseMatrix(FileNameWithoutExt, InDirectory)
|
FileNameWithoutExt |
String, name of the file to be written. Without extention! |
InDirectory |
the directory where to read from; if not given: current dir. |
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. |
CL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.