asdataframe: Convert "compositions" classes to data frames

Description Usage Arguments Value Author(s) Examples

Description

Convert a compositional object to a dataframe

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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,...)
          

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

1
2
3
4
5
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)


Search within the compositions package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.