powered by
add index column for neater colnames
addIndexColumnToMatrix(x)
matrix object
matrix
if (FALSE) { x <- matrix(1:9, 3) colnames(x) <- rep("Long names that occupiy too much space", 3) rownames(x) <- rep("Some text", 3) addIndexColumnToMatrix(x) }
Run the code above in your browser using DataLab