gsigetD: Interal function: Get number of samples and number of parts...

gsi.getDR Documentation

Interal function: Get number of samples and number of parts in a compositional object

Description

Get the number of samples N and the number of parts D of the compositions in an acomp, rcomp, aplus, rplus object.

Usage

gsi.getD(x)
gsi.getN(x)
          

Arguments

x

an acomp, rcomp, aplus, rplus object or something that could be cast to one of them

Value

an integer giving the number of parts D or the number of samples N.

Note

Do not use gsi.* functions directly since they are internal functions of the package

Author(s)

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

Examples

gsi.getD(1:5)
#gsi.getN(1:5)
NCOL(1:5)
NROW(1:5)
data(SimulatedAmounts)
gsi.getD(sa.lognormals5)
#gsi.getN(sa.lognormals5)

compositions documentation built on June 22, 2024, 12:15 p.m.