print_square_matrix: Print a square matrix in well readable format

Description Usage Arguments

View source: R/measures.r

Description

Helper function to produce output for square matrices, e.g. distance matrices etc. Adds a (trimmed) name and index column. Displays upper triangle only by default. The function is used inside the print method of several classes.

Usage

1
2
3
4
5
6
7
8
print_square_matrix(
  x,
  names = NA,
  trim = NA,
  index = TRUE,
  width = NA,
  upper = TRUE
)

Arguments

x

A square matrix.

names

names A vector of row names.

trim

Trimmed length of names (numeric).

index

Whether to add an index columns (default TRUE).

width

Column width of output (numeric).

upper

Whether to only show the upper triangle (default TRUE).


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