I have a data frame with multiple columns. Now, I want to get rid of the row.names column (column 1), and thus I try to select all the other columns.
E.g.,
To build on Freeman's answer, Tidyverse allows dots as replacement for the piped data object, which can be useful to simplify code with repetitive references to the object.
library(tidyverse)
newdata <- olddata %>% select( 2:ncol(.) )
or
newdata <- olddata %>% .[,2:ncol(.)]