addIndexColumnToMatrix: add index column for neater colnames

View source: R/utils.r

addIndexColumnToMatrixR Documentation

add index column for neater colnames

Description

add index column for neater colnames

Usage

addIndexColumnToMatrix(x)

Arguments

x

matrix object

Examples

## 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)


OpenRepGrid documentation built on May 31, 2023, 5:33 p.m.