View source: R/gt_admix_methods.R
c.gt_admix | R Documentation |
Combine method for gt_admix objects
## S3 method for class 'gt_admix'
c(..., match_attributes = TRUE)
... |
A list of |
match_attributes |
boolean, determining whether all attributes (id,
group and algorithm) of the |
A gt_admix
object with the combined data
# run the example only if we have the package installed
if (requireNamespace("LEA", quietly = TRUE)) {
example_gt <- load_example_gt("gen_tbl")
# Create a gt_admix object
admix_obj <- example_gt %>% gt_snmf(k = 1:3, project = "force")
# Create a second gt_admix object
admix_obj2 <- example_gt %>% gt_snmf(k = 2:4, project = "force")
# Combine the two gt_admix objects
new_admix_obj <- c(admix_obj, admix_obj2)
summary(new_admix_obj)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.