countmis: Count missing data.

Description Usage Arguments Examples

View source: R/countmis.R

Description

Function to count missing data.

Usage

1
countmis(dat, vars = NULL, pct = TRUE, exclude.complete = TRUE)

Arguments

dat

Data frame.

vars

Vector with name of variables.

pct

Logical. If this is TRUE will show percentage of missing data by variable.

exclude.complete

Logical. Exclude complete variables from the output.

Examples

1
2
3
4
5
a <- c(NA,2,3,4, NA)
b <- c(2,3,4,NA, 3)
c <- c(1,2,3,1, 1)
dat <- data.table(a,b,c)
countmis(dat, pct = FALSE)

sdaza/sdazar documentation built on May 29, 2019, 4:20 p.m.