totals {compositions}R Documentation

Total sum of amounts

Description

Calculates the total amount by summing the individual parts.

Usage

totals(x,...)
## S3 method for class 'acomp':
totals(x,...)
## S3 method for class 'rcomp':
totals(x,...)
## S3 method for class 'aplus':
totals(x,...)
## S3 method for class 'rplus':
totals(x,...)
          

Arguments

x an amount/amount dataset
... not used, only here for generics

Value

a numeric vector containing the total amounts

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

aplus

Examples

data(SimulatedAmounts)
totals(acomp(sa.lognormals))
totals(rcomp(sa.lognormals,total=100))
totals(aplus(sa.lognormals))
totals(rplus(sa.lognormals))
aplus(acomp(sa.lognormals),total=totals(aplus(sa.lognormals)))

[Package compositions version 0.9-11 Index]