Calculates concentrations for each named category in dataframe

vpr_roi_concentration(
  data,
  category_list,
  station_of_interest,
  binSize,
  imageVolume,
  rev = FALSE
)

Arguments

data

a VPR dataframe as produced by vpr_ctdroi_merge

category_list

a vector of character strings representing category present in the station being processed

station_of_interest

The station being processed

binSize

passed to bin_calculate, determines size of depth bins over which data is averaged

imageVolume

the volume of VPR images used for calculating concentrations (mm^3)

rev

Logical value defining direction of binning, FALSE (default) - bins will be calculated from surface to bottom, TRUE- bins will be calculated bottom to surface

Examples


data('ctd_roi_merge')
ctd_roi_merge$time_hr <- ctd_roi_merge$time_ms /3.6e+06

category_list <- c('Calanus', 'krill')
binSize <- 5
station_of_interest <- 'test'
imageVolume <- 83663

category_conc_n <- vpr_roi_concentration(ctd_roi_merge, category_list,
station_of_interest, binSize, imageVolume)