interesting_cols: Find the columns that have more than one value

View source: R/data_cleaners.R

interesting_colsR Documentation

Find the columns that have more than one value

Description

Find the columns that have more than one value

Usage

interesting_cols(x, keep_anyway = character(0), ...)

Arguments

x

The object (typically a data.frame) with columns to check.

keep_anyway

A character vector of columns to keep even if they only have a single value.

...

ignored (for now)

Value

An object of the same class as x with boring columns taken out and the duplicated values placed in an attribute called "boring".

Examples

interesting_cols(data.frame(A=1:2, B=2))
attr(interesting_cols(data.frame(A=1:2, B=2)), "boring")

billdenney/bsd.report documentation built on Jan. 16, 2024, 12:54 a.m.