Displaying 1 result from an estimated 1 matches for "fakedata2".
Did you mean:
fakedata
2009 Jul 23
4
remove multiple columns by name from dataframe
Hi there,
I'm trying to remove multiple columns by name from a data.frame. As a
result I need to get back the modified data.frame without the removed
columns. My columns I want to delete are listed in a vector called
"delete".
data <- read.csv2("data.csv")
delete <- c("col1", "col2", "col3")
newData <- subset(data, select =