discard_redundant: Removes variables that do not vary in value

View source: R/dplyr_extensions.R

discard_redundantR Documentation

Removes variables that do not vary in value

Description

Removes variables that do not vary in value

Usage

discard_redundant(D, except, ...)

## Default S3 method:
discard_redundant(D, except = c())

## S3 method for class 'tbl_clu'
discard_redundant(object, except = c())

## S3 method for class 'tbl_coef'
discard_redundant(object, except = c())

## S3 method for class 'tbl_post_pred'
discard_redundant(object, except = c())

## S3 method for class 'tbl_predicted'
discard_redundant(object, except = c())

## S3 method for class 'tbl_post'
discard_redundant(object, except = c())

Arguments

D

data frame

except

vector of column names to keep

Value

data frame

data frame

Author(s)

Martin Schmettow all variables that have a constant value are removed from a data frame

Martin Schmettow


schmettow/bayr documentation built on March 23, 2024, 7:49 p.m.