View source: R/babel-bridges.R
as_df | R Documentation |
Used in particular for compatibility with the tidyverse
as_df(x, ...)
## S3 method for class 'Coo'
as_df(x, ...)
## S3 method for class 'Coe'
as_df(x, ...)
## S3 method for class 'PCA'
as_df(x, retain, ...)
## S3 method for class 'LDA'
as_df(x, retain, ...)
x |
an object, typically a Momocs object |
... |
useless here |
retain |
numeric for use with scree methods. Defaut to all. If |
a dplyr::tibble()
Other bridges functions:
bridges
,
complex
,
export()
# first, some (baby) objects
b <- bot %>% coo_sample(12)
bf <- b %>% efourier(5, norm=TRUE)
# Coo object
b %>% as_df
# Coe object
bf %>% as_df
# PCA object
bf %>% PCA %>% as_df # all PCs by default
bf %>% PCA %>% as_df(2) # or 2
bf %>% PCA %>% as_df(0.99) # or enough for 99%
# LDA object
bf %>% LDA(~fake) %>% as_df
# same options apply
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.