npe_site_ids {neonPlantEcology} | R Documentation |
get site ids
Description
This uses the site boundary shapefile (obtainable by data('sites')) to get a list of siteID codes to feed into npe_download.
Usage
npe_site_ids(by = NA, domain = NA, type = NA, aridity = NA, koppen = NA)
Arguments
by |
which variable to select sites by. Can be "domain", "ai", "koppen", or "type". Defaults to NA, which directs the function to return all site codes. |
domain |
can be one or more domain codes, as a character vector, or as a number. e.g. domain = c("D01", "D14"), or domain = c(3, 14), can also be a mix: domain = c(3, "D04). |
type |
can be "Core Terrestrial" or "Relocatable Terrestrial" |
aridity |
can be "Hyper-Arid", "Arid", "Dry sub-humid", or "Humid" |
koppen |
can be any 3 letter Koppen-Geiger code, or one of "Equatorial", "Arid", "Temperate", "Boreal", "Polar" |
Value
a vector of four letter site identification codes.
Examples
# if no domains or site types are specified, it returns all site codes
all_sites <- npe_site_ids()
npe_site_ids(by = "domain", domain = c("Northeast", "Mid-Atlantic"))
npe_site_ids(by = "domain", domain = c("D02", 15))
[Package neonPlantEcology version 1.5.0 Index]