conv_kpa_cm: conv_kpa_cm: converts absolute pressure to cm of water above...

View source: R/conv_kpa_cm.R

conv_kpa_cmR Documentation

conv_kpa_cm: converts absolute pressure to cm of water above the logger

Description

This function converts absolute pressure in kPa to cm of water.

Usage

conv_kpa_cm(df, pres, baro)

Arguments

df

data frame with pressure data

pres

Quoted field name that corresponds absolute pressure from a water level logger

baro

Quoted field name of the atmostpheric barometric pressure correction field

Value

Returns a data frame with a new column labeled with SITECODE_cm, which represents cm of water above the logger.

Examples

## Not run: 
df <- data.frame(BIGH_AbsPres = c(100, 99, 98), WMTN_BARO_AbsPres = c(99, 96, 94))
df2 <- conv_kpa_cm(df, pres = 'BIGH_AbsPres', baro = 'WMTN_BARO_AbsPres')


## End(Not run)


KateMMiller/wetlandACAD documentation built on Dec. 21, 2024, 1:14 a.m.