condense: Condense an onionic vector into a short form

Description Usage Arguments Value Author(s) Examples

Description

Condense an onion into a string vector showing whether the elements are positive, zero or negative.

Usage

1

Arguments

x

An onionic vector

as.vector

Boolean, indicating whether to return a vector or matrix

Value

If as.vector is TRUE, return a string vector of the same length as x whose elements are length 4 or 8 strings for quaternions or octonions respectively. If FALSE, return a matrix with these columns.

The characters are “+” for a positive, “-” for a negative, and “0” for a zero, element.

Author(s)

Robin K. S. Hankin

Examples

1
2

onion documentation built on Feb. 11, 2021, 9:06 a.m.