Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

drop columns by index r

#drop columns by index
df <- mydata[ -c(1,3:4) ]
#drop columns by name
df = subset(mydata, select = -c(x,z))
Source by www.listendata.com #
 
PREVIOUS NEXT
Tagged: #drop #columns #index
ADD COMMENT
Topic
Name
7+6 =