Learn R Programming

provenance (version 4.4)

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

Description

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

Usage

# S3 method for compositional
as.data.frame(x, ...)

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

Value

a data.frame

Arguments

x

an object of class compositional

...

optional arguments to be passed on to the generic function

Examples

Run this code
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))

Run the code above in your browser using DataLab