setFilter {shapeR} | R Documentation |
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
setFilter(object, filter)
object |
A |
filter |
A vector restricting the new filter value. Only otoliths having shape parameters are selected. |
A shapeR
object with the slot filter
set.
Lisa Anne Libungan
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)