Learn R Programming

occTest (version 0.1.1)

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

Value

list

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

Author

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

Examples

Run this code
# \donttest{
xyDF <- data.frame (x=c(0,42),y=c(0,1),Reason=NA)
landSeaFilter(xyDF,xf='x',yf='y')
# }

Run the code above in your browser using DataLab