Answers for "remove string from column r"

R
2

r remove row names

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

remove column from matrix r

# Remove third column - by column number
MyMatrix <- MyMatrix[,-3]

# Remove third and fifth columns - by feeding the matrix a boolean vector
MyMatrix <- MyMatrix[,c(TRUE,TRUE,FALSE,TRUE,FALSE,TRUE)]
Posted by: Guest on August-21-2020

Code answers related to "remove string from column r"

Browse Popular Code Answers by Language