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)

### 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 0.91-6 Index]