powered by
rm.col(mat, to.rm = NULL)
x <- rnorm(600) dim(x) <- c(20,30) colnames(x) <- paste("col",1:30,sep = "") rm.col(x, to.rm = c("col1", "col3", "col8", "col22", "col30"))
Run the code above in your browser using DataLab