Skip to content

Commit 8407df2

Browse files
authored
added example of partial query using %like% and %in% (#356)
1 parent 456d6fc commit 8407df2

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

R/bcdc-web-services.R

+20
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,26 @@
5555
#' collect()
5656
#' )
5757
#'
58+
#' # To query based on partial matches, use %LIKE%:
59+
#' try(
60+
#' res <- bcdc_query_geodata("bc-airports") %>%
61+
#' filter(PHYSICAL_ADDRESS %LIKE% 'Vict%')
62+
#' )
63+
#'
64+
#' # To query using %IN%
65+
#' try(
66+
#' res <- bcdc_query_geodata("bc-airports") %>%
67+
#' filter(
68+
#' AIRPORT_NAME %IN%
69+
#' c(
70+
#' "Victoria Harbour (Camel Point) Heliport",
71+
#' "Victoria Harbour (Shoal Point) Heliport"
72+
#' )
73+
#' ) %>%
74+
#' collect()
75+
#' )
76+
#'
77+
#'
5878
#' try(
5979
#' res <- bcdc_query_geodata("groundwater-wells") %>%
6080
#' filter(OBSERVATION_WELL_NUMBER == "108") %>%

man/bcdc_query_geodata.Rd

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)