## Sites selection examples
## Select all sites
ID=pfSiteSel()
## Site in the Biome #8
ID=pfSiteSel(biome==8)
plot(ID,zoom="world")
## Site in the biome #8 or in the biome #6
ID=pfSiteSel(biome==8 | biome==6)
## Sites in North America by geographic location
ID=pfSiteSel(lat>25, lat<75, long<(-45), long>-150)
plot(ID,zoom="world")
## is equivalent to:
ID=pfSiteSel(lat>25 & lat<75 & long<(-45) & long>-150)
plot(ID,zoom="world")
## By region criterion
ID=pfSiteSel(id_region==c("ENA0","WNA0"))
plot(ID,zoom="world")
## WRONG, use the %in% operator when concatenating two characters
# ID=pfSiteSel(id_region %in% c("ENA0","WNA0"))
# plot(ID,zoom="world")
## Pas-de-Fond site
pfSiteSel(site_name=="Pas-de-Fond")
## All sites in eastern North America that are not Pas-de-Fond
pfSiteSel(site_name!="Pas-de-Fond", id_region=="ENA0")
## Sites with on average one dating point every 250 to 300 yrs
pfSiteSel(date_int>=250 & date_int<=300)
## Sites between 0, 100 m elevation in Asia
ID=pfSiteSel(elev>0 & elev<100, id_region=="ASIA")
## All sites that are not marine nor fluvial
ID=pfSiteSel(id_land_desc!="MARI" , id_site_type!="FLUV" & id_site_type!="LFLU")
plot(ID)
Run the code above in your browser using DataLab