count_unique: Identify the columns of a data frame with at least two...

View source: R/abs_util.R

count_uniqueR Documentation

Identify the columns of a data frame with at least two different values

Description

From a data frame get the columns with more than one distinct value.

Usage

count_unique(df, col_names = NULL)

Arguments

df

A data frame.

col_names

A vector of column names to inspect.

Value

A named logical vector where TRUE means there is more than one distinct value in the column.


jonathan-g/analyzeBehaviorspace documentation built on July 23, 2022, 11:01 a.m.