You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/samples_data.Rmd
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ New functions will use a "snake case", such as "read_USGS_samples". Older functi
95
95
96
96
### Structure
97
97
98
-
Historically, we used allowed users to customize their queries via the `...` argument structure. With `...`, users needed to know the exact names of query parameters before using the function. Now, the new functions will include **ALL** possible arguments that the web service APIs support. This will allow users to use tab-autocompletes (available in RStudio and other IDEs). **Users will need to understand that it is not advisable to specify all of these parameters. The systems can get bogged down with redundant query parameters.** We expect this will be easier for users, but it might take some time to smooth out the documentation and test usability. There may be additional consequences, such as users won't be able to build up argument lists to pass into the function.
98
+
Historically, we allowed users to customize their queries via the `...` argument structure. With `...`, users needed to know the exact names of query parameters before using the function. Now, the new functions will include **ALL** possible arguments that the web service APIs support. This will allow users to use tab-autocompletes (available in RStudio and other IDEs). **Users will need to understand that it is not advisable to specify all of these parameters. The systems can get bogged down with redundant query parameters.** We expect this will be easier for users, but it might take some time to smooth out the documentation and test usability. There may be additional consequences, such as users won't be able to build up argument lists to pass into the function.
Inspecting phos_data, there are `r ncol(phos_data)` columns (!). That is all of the possible fields because the default dataProfile is "Full physical chemical".
165
+
Inspecting phos_data, there are `r ncol(phos_data)` columns (!). That is because the default dataProfile is "Full physical chemical", which is designed to be comprehensive.
166
166
167
-
Instead of using the "Full physical chemical" profile, we could ask for the "Narrow" profile:
167
+
Instead of using the "Full physical chemical" profile, we could ask for the "Narrow" profile, which contains fewer columns:
@@ -213,7 +213,7 @@ The possibilities are (which match the documentation [here](https://api.waterdat
213
213
214
214
## Geographical filters
215
215
216
-
Let's say we don't know a USGS site number, but we do have an area of interest. Here are the different geographic filters available. We'll use characteristicUserSupplied == "Phosphorus as phosphorus, water, unfiltered" to limit the sites returned, and dataType = "locations" to limit the data returned. That means we'll just be asking for what sites measured "Phosphorus as phosphorus, water, unfiltered", but not actually getting those result values.
216
+
Let's say we don't know a USGS site number, but we do have an area of interest. Here are the different geographic filters available. We'll use characteristicUserSupplied = "Phosphorus as phosphorus, water, unfiltered" to limit the sites returned, and dataType = "locations" to limit the data returned. That means we'll just be asking for what sites measured "Phosphorus as phosphorus, water, unfiltered", but not actually getting those result values.
217
217
218
218
### Bounding Box
219
219
@@ -276,7 +276,7 @@ map_it(point_sites)
276
276
### countyFips
277
277
278
278
County query parameter. To get a list of available counties,
279
-
run `check_param("counties")`. The "Fips" can be created using the function `countyCdLookup`.
279
+
run `check_param("counties")`. The "Fips" values can be created using the function `countyCdLookup`.
280
280
281
281
```{r}
282
282
dane_county <- countyCdLookup("WI", "Dane",
@@ -296,8 +296,8 @@ map_it(county_sites)
296
296
297
297
### stateFips
298
298
299
-
State query parameter. To get a list of available state fips,
300
-
run `check_param("states")`. The "fips" can be created using the function
299
+
State query parameter. To get a list of available state fips values,
300
+
run `check_param("states")`. The "fips" values can be created using the function
301
301
`stateCdLookup`.
302
302
303
303
```{r}
@@ -347,7 +347,7 @@ media_info$activityMedia
347
347
348
348
### characteristicGroup
349
349
350
-
Characteristic group is a broad category describing the sample. The options for this parameter generally follow the values described in the Water Quality Portal [User Guide](https://www.waterqualitydata.us/portal_userguide), but not always.
350
+
Characteristic group is a broad category describing the sample measurement. The options for this parameter generally follow the values described in the Water Quality Portal [User Guide](https://www.waterqualitydata.us/portal_userguide), but not always.
351
351
352
352
```{r}
353
353
group_info <- check_param("characteristicgroup")
@@ -391,7 +391,7 @@ Record identifier, user supplied identifier. This information would be needed fr
391
391
392
392
### activityStartDate: Lower and Upper
393
393
394
-
Specify one or both of these fields to filter on the activity start date. The service will return records with dates earlier than the value entered for activityStartDateUpper and/or later than the value entered for activityStartDateLower. The logic is inclusive, i.e. it will also return records that match either date. Can be an R Date object, or a string with format YYYY-MM-DD.
394
+
Specify one or both of these fields to filter on the activity start date. The service will return records with dates earlier than and including the value entered for activityStartDateUpper and later than and including the value entered for activityStartDateLower. Can be an R Date object, or a string with format YYYY-MM-DD.
395
395
396
396
For instance, let's grab Wisconsin sites that measured phosphorus in October or November of 2024:
0 commit comments