This is used for figuring out which columns are constant within a group
uniquecols(df)
df
Hadley Wickham <h.wickham@gmail.com>