margins: The margins and dimensions of a generalized array object

Description Usage Arguments

Description

Margins means the names of dimnames of an array. margins<- and remargins are for renaming, but margins<- ignores the names of value while remargins according to the names of value renames the margins. Doing so, remargins may also keep sdim. margins<- always removes sdim. For remargins the length of value can be shorter than that of the margins if the value has names.

Usage

1
2
3
4
5
margins(x)

margins(x) <- value

remargins(x, value)

Arguments

x

A generalized array.

value

A character vector will become the margins (names of dimnames) of the generalized array. margins<- ignores the names of value while remargins according to the names of value renames the margins. For remargins the length of value can be shorter than that of the margins if the value has names.


garray documentation built on May 1, 2019, 8:47 p.m.