vpr_roi_concentration: Calculate VPR concentrations

View source: R/EC_functions.R

vpr_roi_concentrationR Documentation

Calculate VPR concentrations

Description

Calculates concentrations for each named taxa in dataframe

Usage

vpr_roi_concentration(
  data,
  taxas_list,
  station_of_interest,
  binSize,
  imageVolume
)

Arguments

data

a VPR dataframe as produced by vpr_ctdroi_merge

taxas_list

a list of character strings representing taxa 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)

Examples


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

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

taxa_conc_n <- vpr_roi_concentration(ctd_roi_merge, taxas_list,
station_of_interest, binSize, imageVolume)


vprr documentation built on July 12, 2022, 5:07 p.m.