findRowsNA: Indices of rows with 'NA' values

Description Usage Arguments Value See Also Examples

View source: R/matrix.R

Description

Identifies rows that contain an NA value

Usage

1

Arguments

d

A matrix or data frame.

Value

Vector with indices

See Also

showRowsNA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
m <- matrix(letters[c(1, 2, NA, 3, NA, 4, 5, 6, 7, 8)],
            ncol = 2, byrow = FALSE)
m
findRowsNA(m)
showRowsNA(m)

d <- data.frame(x = 1:10)
d
findRowsNA(d)
showRowsNA(d)

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.