summarize_NA_by_group: Summarize NA by Group

View source: R/summarize_NA_by_group.R

summarize_NA_by_groupR Documentation

Summarize NA by Group

Description

Creates a summary table of the number of NA values in each dataframe column, by group.

Usage

summarize_NA_by_group(df, grouping)

Arguments

df

Inputs a dataframe

grouping

Inputs a character value of the column name by which to group the results.

Value

Returns a data frame of a summary table, with group values as columns, and dataframe columns as rows, and cell values as the count of NA per column.

Examples

## Not run: summarize_NA_by_group(df = mydata, grouping = "date_data_collection")

SaeedR1987/healthyr documentation built on July 4, 2023, 11:17 p.m.