depth_from_elev: Add Cast Depth

Description Usage Arguments Details Value See Also

View source: R/rreformat.r

Description

Add cast depths to CTD transect data.

Usage

1
2
depth_from_elev(d, depthcol = "depth", elevcol = "elev",
  surfelevcol = "surfelev")

Arguments

d

A dataframe of CTD transect data.

depthcol

The column name to assign depth data to.

elevcol

The column name containing elevation.

surfelevcol

The column name containing water surface elevation.

Details

Depth is calculated as depthcol = surfelevcol - elevcol.

Value

The dataframe d with an additional column depthcol.

See Also

read_rrectd read_rrectdgrid merge_rrectd


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