formatMatrix: Format a matrix and add index column.

Description Usage Arguments Author(s)

Description

Format a matrix and add index column.

Usage

1
2
3
formatMatrix(x, rnames=rownames(x), pre.index=c(T, F),
    cnames=seq_len(ncol(x)), indexcol=F, digits=2, diag=F,
    mode=1)

Arguments

x

A matrix onbject.

rnames

Row names.

cnames

Column names.

pre.index

Whether to make index prefix for rows and column names.

indexcol

Whether to make an index column.

diag

Whether to show diagonal.

mode

Whether to show upper (mode=1), lower (mode=2) or both triangles (mode=0) of the matrix.

Author(s)

Mark Heckmann


OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.