api-tabX: Interface - operations on multidimensional arrays.

api-tabXR Documentation

Interface - operations on multidimensional arrays.

Description

Interface functions and minor extensions to cpp functions.

Usage

tab_add(tab1, tab2)

tab_align(tab1, tab2)

tab_div(tab1, tab2)

tab_div0(tab1, tab2)

tab_op(tab1, tab2, op = "*")

tab_equal(tab1, tab2, eps = 1e-12)

tabMult(tab1, tab2)

tab_mult(tab1, tab2)

tab_subt(tab1, tab2)

tab_list_mult(lst)

tab_list_add(lst)

tab_expand(tab, aux, type = 0L)

tab_perm(tab, perm)

tab_marg(tab, marg = NULL)

tabMarg(tab, marg = NULL)

tab_sum(tab, ...)

tab_prod(tab, ...)

tab_normalize(tab, type = "none")

tabDiv(tab1, tab2)

tabDiv0(tab1, tab2)

tabPerm(tab, perm)

tabProd(tab, ...)

tabNormalize(tab, type = "none")

tabListMult(lst)

Arguments

op

The algebraic operation to be carried out.

eps

Criterion for checking equality of two arrays.

lst

List of arrays.

tab, tab1, tab2, ...

Arrays with named dimnames (we call them 'named arrays').

aux

Either a list with names and dimnames or a named array from which such a list can be extracted.

type

If 0 then entries are duplicated. If 3 then averages are computed. If 2 then 0 slices are inserted.

perm, marg

A vector of indices or dimnames or a right hand sided formula giving the desired permutation/margin.


hojsgaard/gRbase documentation built on Nov. 6, 2024, 8:06 p.m.