remove rownames in a matrix in r

main.r
# Create a sample matrix
mat <- matrix(1:6, nrow = 2)
rownames(mat) <- c("row1", "row2")

# Remove the rownames
rownames(mat) <- NULL
134 chars
7 lines

related categories

gistlibby LogSnag