Table operations implemented in c++. Corresponding R functions without the trailing underscore exist.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | tab_perm_(tab, perm)
tab_expand_(tab, aux)
tab_align_(tab1, tab2)
tab_marg_(tab, marg)
tab_op_(tab1, tab2, op = "*")
tab_add_(tab1, tab2)
tab_subt_(tab1, tab2)
tab_mult_(tab1, tab2)
tab_div_(tab1, tab2)
tab_div0_(tab1, tab2)
tab_equal_(tab1, tab2, eps = 1e-12)
tab_list_mult_(lst)
tab_list_add_(lst)
|
tab |
Arrays with named dimnames (we call them 'named arrays'). |
perm |
A vector of indices or dimnames or a right hand sided formula giving the desired permutation/margin. |
aux |
Either a list with names and dimnames or a named array from which such a list can be extracted. |
tab1 |
Arrays with named dimnames (we call them 'named arrays'). |
tab2 |
Arrays with named dimnames (we call them 'named arrays'). |
marg |
A vector of indices or dimnames or a right hand sided formula giving the desired permutation/margin. |
op |
The operation to be carried out; "+", "-", "*", "/". |
eps |
Criterion for checking equality of two arrays. |
lst |
List of arrays. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.