Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gsigetD

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

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.