summarize_value_by_group: Summarize Value by Group

View source: R/summarize_values_by_group.R

summarize_value_by_groupR Documentation

Summarize Value by Group

Description

Creates a summary table of the number of times a specified value appears in each dataframe column, by group. For summarizing missing values, use instead healthyr::summarize_NA_by_group

Usage

summarize_value_by_group(df, grouping, val)

Arguments

df

Inputs a dataframe

grouping

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

val

Inputs a character value of the value that you want to summarize across groups and columns.

Value

Returns a dataframe of a summary table counting the number of occurences of the value in each column, by group.

Examples

## Not run: summarize_value_by_group(df = mydata, grouping = "enum", val = "dontknow")

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