setFilter: Set a filter to analyze the shape data

Description Usage Arguments Value Author(s) Examples

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

1
setFilter(object, filter)

Arguments

object

A shapeR object

filter

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

Value

A shapeR object with the slot filter set.

Author(s)

Lisa Anne Libungan

Examples

1
2
3
4
5
6
7
8
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)


Search within the shapeR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.