delete columns in r by name code example
Example 1: r data frame remove column
df$columnName <- NULL
Example 2: how to remove columns in a table in r
# delete multiple columns in r
# delete column in R by mapping Null value to them
dataset$firstcol <- dataset$nextcol <- dataset$anothercol <- NULL