countNA: Count NAs in variables.

Description Usage Arguments Value See Also Examples

View source: R/countNA.R

Description

Count NAs, and calculate NA proportion in data.frame.

Usage

1

Arguments

data

a data.frame to summarize.

Value

a matrix with total data, NA count and NA proportion.

See Also

convertNA

Examples

1
2
3
4
df <- data.frame(id=1:1000, cov1=rnorm(1000), cov2=runif(1000))
df$cov1 <- ifelse(df$cov1 < 0, NA, df$cov1)
df$cov2 <- ifelse(df$cov2 < 0.2, NA, df$cov2)
countNA(df)

epifit documentation built on May 29, 2017, 3:43 p.m.