retain.Rd
Retain only the `n` columns, the first let apart.
retain(x, n_col = ncol(x) - 1)
data.frame with first column as grouping column
integer number of columns to retain. All by default.
data.frame
# untouched dataset with all its columns ncol(pig) #> [1] 51 # after retaining only 12 (plus the 1st as the grouping) ncol(retain(pig, 12)) #> [1] 13