powered by
Filter the occurrence recoreds according to whether they should be in land masses or not
landSeaFilter(df, xf, yf, habType = NULL, verbose = TRUE, habPol = NULL)
list
Data.frame of species occurrences
the field in the dataframe containing the x cordinates
the field in the dataframe containing the y cordinates
character. Define the species habitat. Only "terrestrial" and "sea" implemented.
logical. Print messages? Default TRUE
sf polygon boject. Shows land masses
Josep M Serra-Diaz (pep.serradiaz@agroparistech.fr)
# \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