dtable_missing: describe missing

View source: R/dtable-missing.R

dtable_missingR Documentation

describe missing

Description

get some simple stats on missingness for a set of variables

Usage

dtable_missing(
  data = NULL,
  v = NULL,
  guide = NULL,
  glist = NULL,
  info = "latex",
  only.with = TRUE
)

Arguments

data

the data.frame or similar

v

if NULL all variables are included, else a character vector of the names of wanted variables or a formula (if data is null it will look for the variables in the global workspace, but they need to be of the same length)

guide

a guide (by dtable_guide), either to select variables OR to provide unit information (the type-info will not be used)

glist

an index list or name of grouping variable

info

type of display

only.with

only show those variables with some missing

Value

a data.frame with

  • variable name of variable

  • count number of NA in that variable

  • percent percent NA in that variable


renlund/descripteur documentation built on Sept. 24, 2023, 7:07 p.m.