na_status: Show the number of (remaining) missing values.

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Quick indication of the amount and location of missing values.

Usage

1
2
3
4
5
6
7
na_status(
  x,
  show_only_missing = TRUE,
  sort_columns = show_only_missing,
  show_message = TRUE,
  ...
)

Arguments

x

an R object caryying data (e.g. data.frame)

show_only_missing

if TRUE only columns with NA's will be printed.

sort_columns

If TRUE the columns are sorted descending by the number of missing values.

show_message

if TRUE message will be printed.

...

arguments to be passed to other methods.

Value

data.frame with the column and number of NA's

See Also

glimpse_na

Examples

1
2
3
4
5
6
7
irisNA <- iris
irisNA[1:3,1] <- irisNA[3:7,2] <- NA
na_status(irisNA)

# impute a constant 
a <- impute_const(irisNA, Sepal.Width ~ 7)
na_status(a)

simputation documentation built on Sept. 16, 2021, 5:11 p.m.