Description Usage Arguments Value Author(s)
View source: R/subset_habitats.R
This function takes a subset of the spectral dataset in order to have no empty cell in the two-way analysis design. Given habitats to retain, the function eliminates all the observations that are not from these habitats, and eliminates all islands that do not have all these habitats present.
1 | subset_habitats(specdata, whatHabitats, inclusive = F)
|
specdata |
A data frame containing at least columns for the dependent variables, as well as a column "island" and a column "habitat". |
whatHabitats |
A character vector. What habitats to retain? |
inclusive |
Do we include the islands with some but not all of the wanted habitats (Conception)? If |
A data frame, a subset of specdata
.
Raphael Scherrer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.