Learn R Programming

OpenRepGrid (version 0.1.12)

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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab