Skip to content

Instantly share code, notes, and snippets.

@stephhazlitt
Last active March 21, 2018 17:24
Show Gist options
  • Save stephhazlitt/15d703093248daf5bb0c3d3cc0edadca to your computer and use it in GitHub Desktop.
Save stephhazlitt/15d703093248daf5bb0c3d3cc0edadca to your computer and use it in GitHub Desktop.
Example use of `bcgroundwater` R package
install.packages("devtools")
library(devtools)
install_github("bcgov/bcgroundwater")
library(bcgroundwater)
## use ?bcgroundwater to see the Help menu for functions in the package
## get data for OBS WELL 447 - Surrey (Tynehead Park)
data_447 <- get_gwl("447", which = "all")
## get data for a set of OBS WELLS
data_my_wells <- get_gwl(wells = c("447", "453", "456"), which = "all")
## OR
## make a vector with my set of obs well numbers
my_wells <- c("447", "453", "456")
## pass that object into the function
data_my_wells <- get_gwl(wells = my_wells, which = "all")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment