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

Description Usage Arguments Value Examples

Description

Removes rows with more than thresh NA's from matrix

Usage

1
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

1
2
3
4
5
x = matrix(rnorm(10*10),ncol=10)
dim(x)
x[3,3] = NA
x = removeNArows(x)
dim(x)


Search within the quantable package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.