Last active
March 21, 2018 17:24
-
-
Save stephhazlitt/15d703093248daf5bb0c3d3cc0edadca to your computer and use it in GitHub Desktop.
Example use of `bcgroundwater` R package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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