speciesInPolygon: Find what species occur within a polygon

Description Usage Arguments Details Value Author(s) Examples

Description

A wrapper function that calls ALA4R to searche the Atlas of Living Australia for species occurnances within a polygon of size radius.

Usage

1
speciesInPolygon(x, y, r, numVert = 1000)

Arguments

x

A longitude coordinate

y

A latitude coordinate

r

The radius (in kilometers) of the polgon

numVert

The number of vertices to create the polygon

Details

This feature is currently only available for searches within Australia. Later versions will implement a call to the GBIF API server. Use getSpecies2 to download occurance records for a species outside of Australia.

This function relies on the wapper function specieslist of package ALA4R, and we greatly acknowledge the creator(s) of this package.

Value

A data.frame containing the kingdom the species belongs to, the species name, their common name (if known), and the number of occurnance records

Author(s)

P. A. Harrison

Examples

1
2
3
4
5
6
# Not run
#library(sp)
#library(raster)

#tmp <- PUCA::speciesInPolygon(x = 147.4686, y = -42.008, r = 5)
#head(tmp)

peteraharrison/PUCA documentation built on Sept. 16, 2019, 7:56 a.m.