#' @title Subset data to only contain community (taxa)
#'
#' @param data_source Data.frame wich shuld be cleaned.
#' @param ommit_vars Vector with names of columns to ommit.
#' @keywords internal
subset_community <-
function(data_source,
ommit_vars = c("label", "res_age", "age_diff", "age")) {
data_source %>%
dplyr::select(
!dplyr::any_of(
c(ommit_vars)
)
) %>%
return()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.