subset.ZooplanktonData: Subset a ZooplanktonData object

Description Usage Arguments Details Value Author(s) See Also

View source: R/subset.ZooplanktonData.R

Description

Generic subset method for ZooplanktonData objects. Returns a subset of a Zooplankton object based on meta-data or species information defined by the type argument.

Usage

1
2
## S3 method for class 'ZooplanktonData'
subset(x, type, ..., remove_zeros = FALSE, drop_levels = TRUE)

Arguments

x

a ZooplanktonData object.

type

Character defining whether meta-data ("meta") or species list ("splist") should be used in subsetting.

...

Arguments passed to the subset function.

remove_zeros

Logical indicating whether columns/species (if type = "meta") or rows/samples (if type = "splist") with zero sums should be removed from the dataset.

drop_levels

Logical indicating whether unused levels should be dropped from $meta and $splist data frames. See droplevels.

Details

See the the subset function for details.

Value

Returns a subsetted ZooplanktonData object.

Author(s)

Mikko Vihtakari

See Also

Other ZooplanktonData: merge_zooplankton_data(), print.ZooplanktonData(), read_zooplankton_data(), summarize_zooplankton_data()


MikkoVihtakari/MarineDatabase documentation built on July 7, 2020, 2:16 a.m.