define_wells: Define wells

Description Usage Arguments Value Examples

View source: R/anem_preparation.R

Description

Define wells in the aquifer with required parameters.

Usage

1
define_wells(wells_df = NULL, ...)

Arguments

wells_df

A data.frame (or tibble, or sf with point geometry) containing properties of wells. If wells_df is an sf object, the coordinates for each well are extracted and the sf geometry is removed.

...

Named vector inputs to be added to the wells object. Names that replicate columns in wells_df supplant the columns in wells_df, except wID and well_type which are generated automatically. The length of inputs should generally be the same as the number of wells. However, if an input is repeated for all wells, it can be input with length 1.

Value

This function returns a data.frame containing the columns:

These columns are followed by any other columns desired for the wells.

Examples

1
2
3
4
5
6
7
8
define_wells(data.frame(wID=c(3,NA,9)),Q=rep(0,3))

wells_df <- data.frame(x=1:3,y=1:3,Q=11:13,diam=0.5,id=1001:1003)
wells <- define_wells(wells_df)
print(wells) # prints a tibble of the wells

define_wells(wells_df,Note="note",Name=c("N1","N2","N3"))
define_wells(wells_df,R=1e4,Q=-21:-23) # include R and replace Q in wells_df

gopalpenny/anem documentation built on Dec. 20, 2020, 5:27 a.m.