NA_report | R Documentation |
Report NA variables per case
NA_report(x, id_var = NULL)
x |
data.frame to be analyzed |
id_var |
variables to be used as id (characters from name(data.farme) |
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
NA_report(test, "name")
test2
NA_report(test2, c("name", "surname"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.