opc_speed: Calculate OPC speed

View source: R/opc.R

opc_speedR Documentation

Calculate OPC speed

Description

Use one of 3 methods (instantaneous, range, or lm) to calculate the descent rate of an OPC in meters per second.

Usage

opc_speed(df, method = "instantaneous", exclude_bad_depths = TRUE)

Arguments

df

opc tibble

method

choose one from instantaneous, range, or lm

exclude_bad_depths

logical, where TRUE removes bad depth flags

Details

instantaneous - compute speed at each sampling point and return average range - simple divide the time difference by the depth difference lm - fit a simple linear model and return the slope parameter

Value

numeric speed in meters per second (positive down)


hansenjohnson/opcr documentation built on Jan. 24, 2023, 5:04 a.m.