Learn R Programming

douconca (version 1.2.3)

print.wrda: Print a summary of a wrda or cca0 object

Description

Print a summary of a wrda or cca0 object

Usage

# S3 method for wrda
print(x, ...)

Value

No return value, results are printed to console.

Arguments

x

an object from wrda or cca0

...

Other arguments passed to the function (currently ignored).

Examples

Run this code
data("dune_trait_env")

# rownames are carried forward in results
rownames(dune_trait_env$comm) <- dune_trait_env$comm$Sites
response <- dune_trait_env$comm[, -1]  # must delete "Sites"

w <- rep(1, 20) 
w[1:10] <- 8 
w[17:20] <- 0.5

object <- wrda(formula = response ~ A1 + Moist + Mag + Use + Condition(Manure),
               data = dune_trait_env$envir, 
               weights = w)
object # Proportions equal to those Canoco 5.15

mod_scores <- scores(object, display = "all")
scores(object, which_cor = c("A1", "X_lot"), display = "cor")
anova(object)

Run the code above in your browser using DataLab