This function extracts the information of a given local community and stores it in a separate data frame. It can also extract more than one site.

comm_subset(dataset = NULL, site = NULL)

Arguments

dataset

A data frame containing recruitment data.

site

character. Name of a study site within the dataset or a character vector with the names of several study sites.

Value

A data frame containing all the data from the desired community/ies

Examples

data(RecruitNet)

Ventisquero <- comm_subset(RecruitNet, site = "Ventisquero")

TwoSites <- comm_subset(RecruitNet, c("Ventisquero","Agadir"))