Learn R Programming

quantable (version 0.3.6)

removeNArows: Removes rows with more than thresh NA's from matrix

Description

Removes rows with more than thresh NA's from matrix

Usage

removeNArows(obj, thresh = 0)

Arguments

obj

matrix or dataframe

thresh

- maximum number of NA's / row - if more the row will be removed

Value

matrix

Examples

Run this code
# NOT RUN {
x = matrix(rnorm(10*10),ncol=10)
dim(x)
x[3,3] = NA
x = removeNArows(x)
dim(x)
# }

Run the code above in your browser using DataLab