Learn R Programming

compositions (version 2.0-4)

is.acomp: Check for compositional data type

Description

is.XXX returns TRUE if and only if its argument is of type XXX

Usage

is.acomp(x)
is.rcomp(x)
is.aplus(x)
is.rplus(x)
is.rmult(x)
is.ccomp(x)

Value

TRUE or FALSE

Arguments

x

any object to be checked

Author

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

Details

These functions only check for the class of the object.

See Also

acomp, rcomp aplus, rplus

Examples

Run this code
is.acomp(1:3)
is.acomp(acomp(1:3))
is.rcomp(acomp(1:3))
is.acomp(acomp(1:3)+acomp(1:3))

Run the code above in your browser using DataLab