Answers for "delete column or row from matrix r"

R
2

r remove row names

rownames(data) <- c()
Posted by: Guest on March-13-2020
0

r remove column by index

DT[, coltodelete := NULL]
Posted by: Guest on May-15-2021

Browse Popular Code Answers by Language