showColsNA: Show columns with 'NA' values

Description Usage Arguments Value See Also Examples

View source: R/matrix.R

Description

Show columns that contain an NA value

Usage

1

Arguments

d

A matrix or dataframe.

Value

Subset of d containing NA values. Returns NULL if no NA values are present.

See Also

findColsNA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
m <- matrix(letters[c(1, 2, NA, 3, NA, 4, 5, 6, 7, 8)],
            ncol = 2, byrow = FALSE)
colnames(m) <- c("x", "y")
m
findColsNA(m)
showColsNA(m)

d <- data.frame(x = 1:10)
d
findColsNA(d)
showColsNA(d)

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