powered by
This function aims to remove columns indicated by col-number
.removeCol(matr, rmCol)
This function returns an matrix or data.frame
(matrix or data.frame) main input
(integer) column index for removing
dist
aa <- matrix(1:6, ncol=3) .removeCol(aa, 2)
Run the code above in your browser using DataLab