count_levels: Count the number of levels in a data frame by column

View source: R/var_summary.R

count_levelsR Documentation

Count the number of levels in a data frame by column

Description

Returns a vector of the number of levels of each variable in a data frame.

Usage

count_levels(df, all = FALSE)

Arguments

df

A data frame.

all

By default variables with no levels are omitted from the output. Set all=TRUE to show all.


jedwards24/edwards documentation built on Sept. 2, 2023, 8:16 a.m.