water_level_conversion: Convert to Inches

water_level_conversionR Documentation

Convert to Inches

Description

Convert to Inches

Usage

water_level_conversion(
  baro_df,
  water_df,
  baro_elev,
  hobo_elev,
  gage_height = NULL,
  gh_date = NULL,
  var_select = c("abs_pres_water", "abs_pres_baro", "GH", "gage_height"),
  method = "lasso.select.norm"
)

Arguments

baro_df

A data.frame with column abs_pres and dt.

water_df

A data.frame with column abs_pres and dt.

baro_elev

Elevation in feet at the barometer site.

hobo_elev

Elevation in feet at the gage site.

gh_date

A character vector for the date of add_gh, e.g. '2022-05-14 11:00:00'.

var_select

A character vector indicating what variables to use with mice::mice() imputation.

method

A character indicating what method to use in mice::mice(), 'lasso.select.norm' (default).

gh

A numeric vector indicating the gage height for a particular day(s).

Note

The gh and gh_date parameters will perform differently if the vector length 1, e.g. one gh_date and gh. It will just subtract or add to the height at that date going forward; however, if greater than 1 then gh and gh_date will be used to try and 'calibrate' the height of the transducer to a 'observed' gage height height_imp using mice::mice(method = 'lasso.norm').


joshualerickson/resourceviz documentation built on Jan. 10, 2024, 4:57 p.m.