View source: R/generate_occ_uncertain.R
generate_occ_uncertain | R Documentation |
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"
)
occs_df |
A |
lat_col |
Name of column of latitude dbl values. Caps sensitive. |
lon_col |
Name of column of longitude dbl values. Caps sensitive. |
lat_uncertainty |
Name of column of latitude uncertainty in degree values. Caps sensitive. |
lon_uncertainty |
Name of column of longitude uncertainty in degree values. Caps sensitive. |
taxa_col |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.