Skip to content

Commit

Permalink
Improve the documentation of perform_adonis
Browse files Browse the repository at this point in the history
  • Loading branch information
SWittouck committed Nov 16, 2021
1 parent 9b7954f commit eb5f3d8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
14 changes: 10 additions & 4 deletions R/getters.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,17 @@ abundances <- function(ta) ta$abundances

#' Perform an adonis test
#'
#' This function executes the adonis function of the vegan package and returns
#' the result.
#' This function executes the \link[vegan]{adonis} function of the vegan package
#' and returns the result.
#'
#' Predictors should be a character vector. Samples where one of the predictors
#' is NA are removed.
#' Samples where one or more predictors are NA are removed.
#'
#' @param ta A tidyamplicons object.
#' @param predictors A character vector with predictors to include in the model.
#' @param permutations The number of permutations (more permutations takes
#' longer but gives a more accurate p-value).
#'
#' @return An object of class "adonis" (see \link[vegan]{adonis}).
#'
#' @export
perform_adonis <- function(ta, predictors, permutations = 999) {
Expand Down
18 changes: 14 additions & 4 deletions man/perform_adonis.Rd

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

0 comments on commit eb5f3d8

Please sign in to comment.