View source: R/compile_sent_WL.R
compile_sent_WL | R Documentation |
This function uses (and requires) the output from prep_well_data() to calculate the water level relative to the wetland surface for each sentinel site. This should only be used for one year at a time, to ensure that the function is using the correct well measurements to calculate water level. This function also requires a data frame called conv_table with the following fields: site, wellabs, ground, corfac, baro
compile_sent_WL(df, conv_table, between_visits = TRUE)
df |
data frame output from join_well_data |
conv_table |
data frame listing site and well info for WL conversion |
between_visits |
|
Returns a data frame with the water level relative to the ground surface for each sentinal water level logger.
## Not run:
# Compile tables
dir = c('C:/Water_level_data/growing_season_2019')
well19 <- prep_well_data(path = dir, year = 2019, growing_season = TRUE, export = FALSE)
conv_tbl_19 <- prep_conv_table(path = dir, year = 2019, visits = "fall", export = FALSE)
# Create data frame with water level relative to surface, cut at spring well visit
well19WL<-compile_sent_WL(well19, conv_tbl_19, between_visits = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.