powered by
Attaches sample metadata (e.g., grouping variable) to a vegan ordination object and assigns class 'barrel_ord'.
barrel_prepare(ord, metadata)
The ordination object with metadata attached and class "barrel_ord".
"barrel_ord"
A vegan ordination object (e.g., from rda, cca, metaMDS).
rda
cca
metaMDS
A data frame of sample metadata. Must have same number of rows as ordination site scores.
library(vegan) data(dune) data(dune.env) ord <- rda(dune, scale = TRUE) ord_prepared <- barrel_prepare(ord, dune.env) class(ord_prepared)
Run the code above in your browser using DataLab