Description Usage Arguments Value Author(s)

View source: R/matrix_contrasts.R

This function assembles multiple vectors of contrasts weights into a matrix. All pairwise contrasts between habitats on each island are computed separately. Contrasts between habitats across islands are not considered.

1 | ```
matrix_contrasts(specdata)
``` |

`specdata` |
A data frame containing at least columns for the dependent variables, as well as a column "island" and a column "habitat". |

A matrix of contrast weights. Each row is a contrast. Each column is a habitat on a given island. Each row is filled with zeros, except the two habitats to compare, which are given values 1 and -1.

Raphael Scherrer

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.