convert_abundance: Calculate and convert between abundance values for ice core...

Description Usage Arguments Details Author(s)

View source: R/convert_abundance.R

Description

Not ready conversion function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
convert_abundance(
  data,
  ab_col,
  ab_from = NULL,
  ab_to = NULL,
  filtered = NULL,
  type = "icecore",
  cf = 1,
  vol_col = NULL,
  start_col = "from",
  end_col = "to",
  unit_col = "unit"
)

Arguments

data

Data.frame containing the data to be converted

ab_col

Character vector specifying the columns containing abundance data

ab_from

The initial abundance unit. Options: "n" (number of individuals), "nsub" (number of individuals in a subsample), "1/L" (number of individuals per litre), "1/m3" (number of individuals per cubic metre), "1/m2" (number of individuals per square metre).

ab_to

The desired abundance unit. Options: "1/L" (number of individuals per litre), "1/m3" (number of individuals per cubic metre), "1/m2" (number of individuals per square metre).

filtered

Logical indicating whether the sample was filtered (filtered = TRUE) or subsampled (filtered = FALSE). See details.

type

Character argument specifying either the gear column (see read_metadata) or either of following: "icecore" or "net".

cf

Numeric giving the concentration factor connected to the volume difference when transforming water to ice (melted water volume/ice volume). Used only, if type indicates ice core. To remove the effect, set cf = 1.

vol_col

Character argument specifying the volume column to be used in calculations. Should be supplied in liters.

start_col

Character argument specifying the name of the column in data for the section start for the ice core or plankton net in meters.

end_col

Character argument specifying the name of the column in data for the section end for the ice core or plankton net in meters.

unit_col

Character argument specifying the unit column name in data.

Details

The function to calculate ind m^-2 values from ind is (ind*cf*1000*h)/V, where ind is number of individuals in a sample, cf the concentration factor, h height of ice-core section in m, and V melted volume in L.

The function is not ready and works only for "1/L" to "1/m2" conversions with very limited options.

Author(s)

Mikko Vihtakari


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