Skip to content
Prev 326386 / 398502 Next

Subscript out of bound error

use 'match' to convert the names to column indices and then use that for indexing

indx <- match(subCols, names(yourMatrix)
mySubset <- yourMatrix[, indx]

Sent from my iPad
On Jul 5, 2013, at 2:22, Chirag Gupta <cxg040 at email.uark.edu> wrote: