Learn R Programming

wrangle (version 0.5.10)

constant.data.frame: Identify Constant Features of a Data Frame

Description

Returns columns of a data.frame whose values do not vary within subsets defined by columns named in ....

Usage

# S3 method for data.frame
constant(x, ...)

Value

data.frame

Arguments

x

object

...

grouping columns

See Also

Other constant: constant.grouped_df(), constant()

Examples

Run this code
constant(Theoph)
constant(Theoph, Subject) # Wt Dose
Theoph$Study <- 1
constant(Theoph)
constant(Theoph, Study)
constant(Theoph, Study, Subject)

Run the code above in your browser using DataLab