noNANA: Removes rows with any NA values

View source: R/noNANA.R

noNANAR Documentation

Removes rows with any NA values

Description

This is just a quicker function to remove any row containing any NA value. Note this may be overkill in many cases. I use it for processing proteomic matrices where NA is an indicator of unreliable measurements.

Usage

noNANA(x, margin = "rows")

Arguments

x

matrix with NA values

margin

indicator of what should be done when NA is encountered. "rows" (default) = delete entire row with NA "columns" = delete entire column with NA "cellempty" = replace NA value with empty space "cellzero" = replace NA value with numeric zero value


genejockey33000/typGumbo documentation built on July 20, 2023, 11:45 p.m.