select.NA.elements {MCRestimate} | R Documentation |
Selects of a given numeric matrix rows or columns containing more NA values than defined by a given threshold.
select.NA.elements(x, NAthreshold, byRow = TRUE)
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. |
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.
Patrick Warnat mailto:p.warnat@dkfz-heidelberg.de