Learn R Programming

shapeR (version 1.0-1)

setFilter: Set a filter to analyze the shape data

Description

Sets a filter on master.list. Here it is possible to filter the master.list by specific ages, maturity stages, areas, etc. If no value is set, all data with shape parameters are used

Usage

setFilter(object, filter)

Value

A shapeR object with the slot filter set.

Arguments

object

A shapeR object

filter

A vector restricting the new filter value. Only otoliths having shape parameters are selected.

Author

Lisa Anne Libungan

Examples

Run this code
data(shape)
#Filter only Icelandic and Norwegian samples
shape = setFilter(shape,
getMasterlist(shape, useFilter = FALSE)$pop %in% c("NO","IC"))
table(getMasterlist(shape)$pop)
#Reset filter
shape = setFilter(shape)
table(getMasterlist(shape)$pop)

Run the code above in your browser using DataLab