Learn R Programming

xefun (version 0.1.5)

cols_const: constant columns

Description

The columns name of a data frame with constant value.

Usage

cols_const(dt)

Arguments

dt

a data frame.

Examples

Run this code
dt = data.frame(a = sample(0:9, 6), b = sample(letters, 6),
                c = rep(1, 6), d = rep('a', 6))
dt
cols_const(dt)

Run the code above in your browser using DataLab