getRows: getRows

View source: R/CodeAndRoll2.R

getRowsR Documentation

getRows

Description

Returns a subset of rows based on their names and optionally removes rows with only NA or zero values. Reports the number of missing rows.

Usage

getRows(
  mat,
  rownamez,
  silent = FALSE,
  removeNAonly = FALSE,
  remove0only = FALSE
)

Arguments

mat

Input matrix.

rownamez

Vector of row names to search for in the matrix.

silent

Logical indicating whether to suppress printing of missing rows. Default: FALSE

removeNAonly

Logical indicating whether to remove rows with only NA values. Default: FALSE

remove0only

Logical indicating whether to remove rows with only zero values. Default: FALSE

Value

A matrix that is a subset of the input matrix.


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.