Learn R Programming

occTest (version 0.1.1)

nativeStatusCtry: 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
)

Value

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

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?

Author

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

Details

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

See Also

Other spStatus: ctryToIso3()

Examples

Run this code
# \donttest{
#needs spocc library
df <- spocc::occ(query = 'Pseudotsuga menziesii')
occ.data <- spocc::occ2df(df)
nativeStatusCtry(spName = 'Pseudotsuga menziesii',xydat = occ.data[,2:3])
# }

Run the code above in your browser using DataLab