Skip to content

Commit

Permalink
Add ellipsis to betas
Browse files Browse the repository at this point in the history
Can be usefull if using other beta diversity metrics like aitchison to add pseudocounts
  • Loading branch information
TheOafidian committed Nov 26, 2024
1 parent f92f4f9 commit 2693f7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/getters.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ tacosum <- function(ta) {
#' numbers <- data %>% betas()
#'
#' @export
betas <- function(ta, unique = T, method = "bray", binary = F) {
betas <- function(ta, unique = T, method = "bray", binary = F, ...) {
sample_id_1 <- sample_id_2 <- i <- j <- NULL
# make "dist" object with beta values
rel_abundance_matrix <- rel_abundance_matrix(ta, sample_name = sample_id)
betas_dist <- vegdist(rel_abundance_matrix, method = method, binary = binary)
betas_dist <- vegdist(rel_abundance_matrix, method = method, binary = binary, ...)

# save number of betas in betas_dist in shortcut variable
n <- attr(betas_dist, "Size")
Expand Down
2 changes: 1 addition & 1 deletion man/betas.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2693f7a

Please sign in to comment.