MCRestimate (version 2.24.0)

select.NA.elements: Selects NA values of a given numeric matrix

Description

Selects of a given numeric matrix rows or columns containing more NA values than defined by a given threshold.

Usage

select.NA.elements(x, NAthreshold, byRow = TRUE)

Arguments

x
numeric input matrix
NAthreshold
numeric value between 0 and 1, determining the allowed percentage of NA values per row or column. Rows or columns containing more NA values are selected.
byRow
logical. If TRUE, then rows with more NA values than determined by the argument threshold are selected, else columns.

Value

logical vector containing the row or column selection. If argument byRow = TRUE, then value contains as many values as the input matrix contains rows, else it contains as many values as the input matrix contains columns.