as.acomp: create an 'acomp' object

View source: R/io.R

as.acompR Documentation

create an acomp object

Description

Convert an object of class compositional to an object of class acomp for use in the compositions package

Usage

as.acomp(x)

Arguments

x

an object of class compositional

Value

a data.frame

Examples

data(Namib)
qfl <- ternary(Namib$PT,c('Q'),c('KF','P'),c('Lm','Lv','Ls'))
plot(qfl,type="QFL.dickinson")
qfl.acomp <- as.acomp(qfl)
## uncomment the next two lines to plot an error
## ellipse using the 'compositions' package: 
# library(compositions)
# ellipses(mean(qfl.acomp),var(qfl.acomp),r=2)

provenance documentation built on May 29, 2024, 4:23 a.m.