Answers for "delete a column from a dataframe in r"

4

r data frame remove column

df$columnName <- NULL
Posted by: Guest on May-29-2020
0

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
Posted by: Guest on May-09-2021

Code answers related to "delete a column from a dataframe in r"

Browse Popular Code Answers by Language