The subset function has a nice select argument that gives a convenient way to select ranges of columns by name:
df <- subset(df, select=c(g,a:f))
The subset function has a nice select argument that gives a convenient way to select ranges of columns by name:
df <- subset(df, select=c(g,a:f))