nativeStatusCtry: Check native and alien ranges in countries

nativeStatusCtryR Documentation

Check native and alien ranges in countries

Description

performs several queries based on the orignir package to identify native and invasive range status for a given species

Usage

nativeStatusCtry(
  spName,
  xydat,
  resolveNative = TRUE,
  resolveAlien = TRUE,
  verbose = TRUE
)

Arguments

spName

character. Species name in the form of Genus species

xydat

dataframe Species longitude latitude coordinates.

resolveNative

logical. Should the function attempt to find countries where species are considered native?

resolveAlien

logical. Should the function attempt to find countries where species are considered introduced?

verbose

logical. Want to print information during the process?

Details

right now based on the package originr, which queries on Flora Europea, GISD or Native species resolver. Future implementation may query more databases.

Value

list with two vectors: ntvCtry and invCtry, showing the countries in ISO3 standard codes

Author(s)

Josep M Serra-Diaz (pep.serradiaz@agroparistech.fr)

See Also

Other spStatus: ctryToIso3()

Examples


#needs spocc library
df <- spocc::occ(query = 'Pseudotsuga menziesii')
occ.data <- spocc::occ2df(df)
nativeStatusCtry(spName = 'Pseudotsuga menziesii',xydat = occ.data[,2:3])


occTest documentation built on Nov. 18, 2022, 5:07 p.m.