Skip to content

Commit b65ce86

Browse files
committed
added a clarifying comment on how to use ~ for partial string matching in a query
1 parent c09f971 commit b65ce86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

traits/05-maricopa-field-scanner.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ leaflet() %>%
8888
8989
```{r traits-05-height-cover-ndvi}
9090
#variables <- betydb_query(
91-
# table = "variables", name = "~^(NDVI|canopy_height|canopy_cover|)$")
91+
# table = "variables", name = "~^(NDVI|canopy_height|canopy_cover|)$") # a tilde ~ can be used to partially match a string #the tilde is used in this query to get variable names that contain either 'NDVI', 'canopy_height', or 'canopy_cover'
9292
9393
#variables %>%
9494
# select(id, name, units, n_records = `number of associated traits`)

0 commit comments

Comments
 (0)