as.data.frame: create a 'data.frame' object

Description Usage Arguments Value Examples

Description

Convert an object of class compositional to a data.frame for use in the robCompositions package

Usage

1
2
3
4
5
## S3 method for class 'compositional'
as.data.frame(x, ...)

## S3 method for class 'counts'
as.data.frame(x, ...)

Arguments

x

an object of class compositional

...

optional arguments to be passed on to the generic function

Value

a data.frame

Examples

1
2
3
4
5
6
data(Namib)
Major.frame <- as.data.frame(Namib$Major)
## uncomment the next two lines to plot an error
## ellipse using the robCompositions package:
# library(robCompositions)
# plot(pcaCoDa(Major.frame))

provenance documentation built on May 5, 2021, 1:06 a.m.