# NOT RUN {
# create id
mtcars$id <- 1:nrow(mtcars)
gathered <- gather(mtcars, "col", "data", -id)
#> gather: reorganized (mpg, cyl, disp, hp, drat, <U+2026>) into (col, data) [was 32x12, now 352x3]
# }
Run the code above in your browser using DataLab