atotal: Add all marginal sums to an array

Description Usage Arguments Value Author(s)

Description

atotal adds by default a border of sums to an array. The function FUN may be used instead of 'sum'. Additional arguments to FUN can also be given.

Usage

1
atotal(arr, FUN = sum, label = "Total", ...)

Arguments

arr

array for which margins need to be added

FUN

function to compute margins, default: sum

label

for margin, default: 'Total'

...

additional arguments to 'FUN'

Value

an array with dimension dim(arr) + 1

Author(s)

Georges Monette


gmonette/WWCa documentation built on May 17, 2019, 7:25 a.m.