api-tabX function

Interface - operations on multidimensional arrays.

Interface - operations on multidimensional arrays.

Interface functions and minor extensions to cpp functions.

tabAdd(tab1, tab2) tabAlign(tab1, tab2) tabDiv(tab1, tab2) tabDiv0(tab1, tab2) tabOp(tab1, tab2, op = "*") tabEqual(tab1, tab2, eps = 1e-12) tabExpand(tab, aux, type = 0L) tabMult(tab1, tab2) tabSubt(tab1, tab2) tabListMult(lst) tabListAdd(lst) tabPerm(tab, perm) tabMarg(tab, marg = NULL) tabSum(tab, ...) tabProd(tab, ...) tabNormalize(tab, type = "none")

Arguments

  • op: The algebraic operation to be carried out.
  • eps: Criterion for checking equality of two 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.
  • lst: List of arrays.
  • perm, marg: A vector of indices or dimnames or a right hand sided formula giving the desired permutation/margin.