Learn R Programming

compositions (version 2.0-4)

gsi.getD: 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)

Value

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

Arguments

x

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

Author

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

Examples

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

Run the code above in your browser using DataLab