Learn R Programming

compositions (version 2.0-2)

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)

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.

Examples

Run this code
# NOT RUN {
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