R: Check for compositional data type

is.acomp {compositions} | R Documentation

## 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

### Details

These functions only check for the class of the object.

### Value

TRUE or FALSE

### Author(s)

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

### See Also

`acomp`, `rcomp` `aplus`, `rplus`

### Examples

    is.acomp(1:3)
    is.acomp(acomp(1:3))
    is.rcomp(acomp(1:3))
    is.acomp(acomp(1:3)+acomp(1:3))

[Package compositions version 1.40-3 Index]