prop_missing: Calculate the proportion of missing values in each column of...

View source: R/prop_missing.R

prop_missingR Documentation

Calculate the proportion of missing values in each column of a data frame

Description

prop_missing takes a data.frame and calculates the proportion of NA values within each column.

Usage

prop_missing(df)

Arguments

df

A data.frame or an extension of data.frame such as a tibble.

Value

A tibble with two columns: one (named variable) containing the column names of the input data.frame, and the other (named prop_missing) containing the proportion of missing values within the corresponding column in the input data.frame.

Examples

prop_missing(airquality)


jackhannah95/jafun documentation built on Feb. 9, 2023, 12:24 p.m.