Learn R Programming

compositions (version 1.40-2)

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)

Arguments

x

any object to be checked

Value

TRUE or FALSE

Details

These functions only check for the class of the object.

See Also

acomp, rcomp aplus, rplus

Examples

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