powered by
The columns name of a data frame with constant value.
cols_const(dt)
a data frame.
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