View source: R/isAvailable_vec.R
isAvailable_vec | R Documentation |
isAvailable_vec
checks whether the MAP database contains Vector Occurrence points for the specified country/location.
isAvailable_vec(
sourcedata = NULL,
country = NULL,
ISO = NULL,
continent = NULL,
full_results = FALSE,
version = NULL
)
sourcedata |
deprecated argument. Please remove it from your code. |
country |
string containing name of desired country, e.g. |
ISO |
string containing ISO3 code for desired country, e.g. |
continent |
string containing name of continent for desired data, e.g. |
full_results |
By default this is FALSE meaning the function only gives a message outlining whether specified country is available, if |
version |
(optional) The vector points dataset version to use. If not provided, will just use the most recent version of vector points data. (To see available version options, use listVecOccPointVersions) |
isAvailable_Vec
returns a named list of input locations with information regarding data availability.
if full_results == TRUE
, a named list is returned with the following elements:
location
- specified input locations
is_available
- 1 or 0; indicating whether data is available for this location
possible_match
- agrep-matched country names indicating potential mispellings of countries where is_available == 0; NA if data is available for this location.
## Not run:
isAvailable_vec(country = "Suriname")
x <- isAvailable_vec(ISO = "NGA", full_results = TRUE)
x <- isAvailable_vec(continent = "Oceania", full_results = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.