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, inclusive = F)

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?

inclusive

Do we include the islands with some but not all of the wanted habitats (Conception)? If FALSE, keep only the islands with all the wanted habitats.

Value

A data frame, a subset of specdata.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on May 26, 2019, 12:32 p.m.