Drop columns by index R

Option 1: Drop columns by index

dataFrame <- testData[ -c(1,3:4) ]

Option 2: Drop columns by Name

dataFrame = subset(testData, select = -c(x,z))
Content Protection by DMCA.com
Please Share