landSeaFilter: Filter occurrence by habitat (terrestrial/non-Terrestrial)

View source: R/landFilter.R.R

landSeaFilterR Documentation

Filter occurrence by habitat (terrestrial/non-Terrestrial)

Description

Filter the occurrence recoreds according to whether they should be in land masses or not

Usage

landSeaFilter(df, xf, yf, habType = NULL, verbose = TRUE, habPol = NULL)

Arguments

df

Data.frame of species occurrences

xf

the field in the dataframe containing the x cordinates

yf

the field in the dataframe containing the y cordinates

habType

character. Define the species habitat. Only "terrestrial" and "sea" implemented.

verbose

logical. Print messages? Default TRUE

habPol

sf polygon boject. Shows land masses

Value

list

Author(s)

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

Examples


xyDF <- data.frame (x=c(0,42),y=c(0,1),Reason=NA)
landSeaFilter(xyDF,xf='x',yf='y')


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