formatMatrix: Format a matrix and add index column.

Description Usage Arguments Author(s)

View source: R/utils.r

Description

Format a matrix and add index column.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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.

pre.index

Whether to make index prefix for rows and column names.

cnames

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


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