ReadPoints(x, y, areanames = NA, verbose = FALSE, cleaning = FALSE)data.frame with three columns named identifier, XCOOR, YCOOR or a character string.  If x is a character string, it can either be the path to a tab-delimited text file containing the coordinates of points of interest (tab delimited, three columns with header: identifier, XCOOR, YCOOR) OR a vector of species names.   In the latter cases GBIF is searched for occurrence data using the rgbif function of the rgbif package. 
SpatialPolygons OR an object of the class
 SpatialPolygonsDataFrame.
GeoClean is applied to the input coordinates. Default = FALSE.
GeoClean.
lemurs_in
data(lemurs)
data(mdg_poly)
inp <- ReadPoints(lemurs, mdg_poly)
Run the code above in your browser using DataLab