Description Usage Arguments Details Examples
View source: R/wiDBfunctions.R
This function is called by wiDB_data
and wiDB_sites
to validate arguments passed by the user.
1 2 | wiDB_validate = function(minLat, maxLat, minLong, maxLong, minElev, maxElev,
minDate, maxDate, countries, states, types, projects)
|
minLat |
numeric. Minimum latitude for query region, in decimal degrees. South negative. |
maxLat |
numeric. Maximum latitude for query region, in decimal degrees. South negative. |
minLong |
numeric. Minimum longitude for query region, in decimal degrees. West negative. |
maxLong |
numeric. Maximum longitude for query region, in decimal degrees. West negative. |
minElev |
numeric. Minimum elevation for query. Meters. |
maxElev |
numeric. Maximum elevation for query. Meters. |
minDate |
character. Minimum date for query. Format: "YYYY-MM-DD" |
maxDate |
character. Maximum date for query. Format: "YYYY-MM-DD" |
countries |
character. Vector of one or more two-letter country codes for query. |
states |
character. Vector of one or more two-letter state or province codes for query. |
types |
character. Vector of one or more sample types for query. See vocabulary in the wiDB tempate. |
projects |
character. Vector of one or more project codes for query. |
Not intended to be called by user. Calling functions pad all arguments with NULL values if not provided by user.
1 2 | #Call wiDB_sites with incorrectly formatted date, returns error
sites = wiDB_sites(minDate = "9/1/2019", types = "Tap")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.