Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

asdataframe

Convert "compositions" classes to data frames


Description

Convert a compositional object to a dataframe

Usage

## S3 method for class 'acomp'
as.data.frame(x,...)
## S3 method for class 'rcomp'
as.data.frame(x,...)
## S3 method for class 'aplus'
as.data.frame(x,...)
## S3 method for class 'rplus'
as.data.frame(x,...)
## S3 method for class 'rmult'
as.data.frame(x,...)
## S3 method for class 'ccomp'
as.data.frame(x,...)

Arguments

x

an object to be converted to a dataframe

...

additional arguments are not used

Value

a data frame containing the given data.

Author(s)

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

Examples

data(SimulatedAmounts)
as.data.frame(acomp(sa.groups))
# The central perpose of providing this command is that the following
# works properly:
data.frame(acomp(sa.groups),groups=sa.groups.area)

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.