Learn R Programming

OpenRepGrid (version 0.1.14)

addIndexColumnToMatrix: add index column for neater colnames

Description

add index column for neater colnames

Usage

addIndexColumnToMatrix(x)

Arguments

x

matrix object

Examples

Run this code
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