Skip to content

Commit

Permalink
Clear previous results on rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOafidian committed Jan 7, 2025
1 parent c2cfaaf commit 6da9033
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/adders_taxa.R
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ add_prevalence <- function(
ta, condition = NULL, relative = FALSE, fisher_test = FALSE
) {

# remove any pre-existing result columns
ta$taxa <- ta$taxa %>%
select(- starts_with("prevalence"), - starts_with("fisher"))

fisher <- prevalence <- . <- NULL
prev <- "prevalence"
prev_in <- "prevalence_in"
Expand Down

0 comments on commit 6da9033

Please sign in to comment.