subset_habitats: Subset of the spectral dataset

Description Usage Arguments Value Author(s)

View source: R/subset_habitats.R

Description

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.

Usage

1
subset_habitats(specdata, whatHabitats)

Arguments

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?

Value

A data frame, a subset of specdata.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on Dec. 26, 2018, 1:15 p.m.