Skip to content

Commit

Permalink
update tests for designdist examples
Browse files Browse the repository at this point in the history
Separate commit in case designdist changes are cherry-picked.
  • Loading branch information
jarioksa committed Jan 17, 2025
1 parent 99318b3 commit 33e609a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Examples/vegan-Ex.Rout.save
Original file line number Diff line number Diff line change
Expand Up @@ -2480,11 +2480,15 @@ Icmaeric Cladcerv Claddefo Cladphyl
> ### ** Examples
>
> data(BCI)
> ## Four ways of calculating the same Sørensen dissimilarity
> ## Five ways of calculating the same Sørensen dissimilarity
> d0 <- vegdist(BCI, "bray", binary = TRUE)
> d1 <- designdist(BCI, "(A+B-2*J)/(A+B)")
> d2 <- designdist(BCI, "(b+c)/(2*a+b+c)", abcd = TRUE)
> d3 <- designdist(BCI, "gamma/alpha - 1", alphagamma = TRUE)
> d4 <- designdist(BCI, "dist(x, 'manhattan')/(A+B)")
> ## Zero-adjusted Bray-Curtis of Clarke et al. (J Exp Marine Biol & Ecol
> ## 330:55-80; 2006)
> dbr0 <- designdist(BCI, "(A+B-2*J)/(A+B+2*min(x[x>0]))", terms = "minimum")
> ## Arrhenius dissimilarity: the value of z in the species-area model
> ## S = c*A^z when combining two sites of equal areas, where S is the
> ## number of species, A is the area, and c and z are model parameters.
Expand Down Expand Up @@ -9142,7 +9146,7 @@ Procrustes sum of squares:
> cleanEx()
> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed: 8.684 0.353 9.056 0 0
Time elapsed: 8.741 0.323 9.079 0 0
> grDevices::dev.off()
null device
1
Expand Down

0 comments on commit 33e609a

Please sign in to comment.