read_named_MM_header: Read the header of a named sparse matrix in MatrixMarket text...

View source: R/named_MM.R

read_named_MM_headerR Documentation

Read the header of a named sparse matrix in MatrixMarket text format

Description

Read the header of a named sparse matrix in MatrixMarket text format

Usage

read_named_MM_header(file, guess_max = 20)

Arguments

file

the file to read

guess_max

the number of lines to read to find the header. (4 should be sufficient. Default: 20)

Value

A list with the following fields:

  • rownames: a character vector with the matrix row names

  • colnames: a character vector with the matrix column names

  • rows: the number of matrix rows

  • columns: the number of matrix columns

  • values: the number of values in the matrix

  • header_length: the number of lines in the header


ReDaMoR documentation built on April 4, 2025, 2:39 a.m.