Learn R Programming

Momocs (version 1.1.6)

as_df: Converts Momocs objects to data.frames

Description

Used in particular for ggplot2 compatibility.

Usage

as_df(x)

Arguments

x
an object, typically a Momocs class

Value

a data.frame

See Also

Other bridges functions: a2l, a2m, l2a, l2m, m2a, m2d, m2ll, m2l

Examples

Run this code
data(bot)
head(as_df(bot))
bot.f <- efourier(bot, 10)
head(as_df(bot.f))
bot.p <- PCA(bot.f)
head(as_df(bot.p))
bot.l <- LDA(bot.p, "type")
head(as_df(bot.l))

Run the code above in your browser using DataLab