addIndexColumnToMatrix: add index column for neater colnames

Description Usage Arguments Examples

View source: R/utils.r

Description

add index column for neater colnames

Usage

1

Arguments

x

matrix object

Examples

1
2
3
4
5
6
7
## 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)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.