generate_occ_uncertain Given a data frame of georeferenced occurrences this function generates a new set of coordinates with added uncertainty.
generate_occ_uncertain(
occs_df,
lat_col = "latitude",
lon_col = "longitude",
lat_uncertainty = "latitude_uncertainty",
lon_uncertainty = "longitude_uncertainty",
taxa_col = "species"
)random_dd A data.frame of a random latitude, random longitude and taxa name for each occurence record.
A data.frame of occurrence locations that includes
at least these four columns - latitude, longitude, latitude uncertainty and longitude uncertainty in degrees.
Name of column of latitude dbl values. Caps sensitive.
Name of column of longitude dbl values. Caps sensitive.
Name of column of latitude uncertainty in degree values. Caps sensitive.
Name of column of longitude uncertainty in degree values. Caps sensitive.
Name of column of taxa (species) values. Caps sensitive.
Input as a dataframe should have the following structure:
| [,1] | ddlat | numeric, latitude (in decimal degrees) | [,2] | ddlon |
| numeric, longitude (in decimal degrees) | [,3] | ddlat unc | numeric, longitude uncertainty (in decimal degrees) | [,4] |
| ddlon unc | numeric, longitude uncertainty (in decimal degrees) | [,5] | tax | character or factor, taxa names |
It is mandatory to respect field positions, but field names do not matter