NAreport: Report NA variables per case

Description Usage Arguments Examples

View source: R/NAreport.R

Description

Report NA variables per case

Usage

1
NAreport(x, idvar = NULL)

Arguments

x

data.frame to be analyzed

idvar

variable to be used as id

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
test <- data.frame(
 name =  c("john","mary","gregor"),
 x = c(1,NA,NA),
 y = c(NA,1,1),
 z = c(1,1,NA))
test2 <- test
test2$surname <- c("doe", "foo", "bar")
test2 <- test2[c("name","surname","x","y","z")]

test
NAreport(test, "name")

test2
NAreport(test2, c("name", "surname"))

lbraglia/yapomif documentation built on May 20, 2019, 11:26 p.m.