join_volume: Join volume information

Description Usage Arguments Value

View source: R/rrevaluate.r

Description

Attach water volume information from estuary bathymetry to gridded data.

Usage

1
2
3
4
5
join_volume(d, volumes, cellvol, joincols = c("elev", "dist", "wse"),
  countcols = c("count", "count.littoral", "count.limnetic",
  "count.sublimnetic", "count.epibenthic", "count.profundal"),
  volcols = c("volume.total", "volume.littoral", "volume.limnetic",
  "volume.sublimnetic", "volume.epibenthic", "volume.profundal"))

Arguments

d

Dataframe containing data to have volume information attached to.

volumes

Dataframe containing cell counts. If cellvol is missing, must also containing the attribute "resolution" which is a dataframe or list with elements xres, yres, and zres.

cellvol

Numeric volume of cells desribed by volumes.

joincols

Columns to use when joining volumes to d.

countcol

Column name containing cell count data in volumes.

volcol

The name of the column containing volume data to be added to d.

Value

The dataframe d with the additional column volcol.


mkoohafkan/rremat documentation built on July 3, 2021, 12:06 p.m.