Learn R Programming

OpenRepGrid (version 0.1.9)

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
## Not run: 
#    x <- matrix(1:9, 3)
#    colnames(x) <- rep("Long names that occupiy too much space", 3)
#    rownames(x) <- rep("Some text", 3)
#    addIndexColumnToMatrix(x)
# ## End(Not run)

Run the code above in your browser using DataLab