This function is designed to find the level1 and level2 code ecoregions for a given lat and long. You can learn more about ecoregions here: https://www.epa.gov/eco-research/ecoregions.

EPA_ecoregion_finder(Lat, Lon, folder.path = NULL)

Arguments

Lat

numeric latitude

Lon

numeric longitude

folder.path

path to the directory where you store the shape files of L1 and L2 ecoregion maps.

Value

a dataframe with codes corresponding to level1 and level2 codes as two columns