meters_to_decdeg: Convert from meters to degrees correcting for global position

View source: R/meters_to_decdeg.R

meters_to_decdegR Documentation

Convert from meters to degrees correcting for global position

Description

meters_to_decdeg converts from meters to degrees at a specified position on the globe. The use case this function was developed for was to calculate occurence point uncertainty values, which are usually reported in meters, as degrees.

The formula for converting from meters to decimal degrees is in part based on information from the ESRI ArcUser magazine at this site https://www.esri.com/news/arcuser/0400/wdside.html

Usage

meters_to_decdeg(
  occs_df,
  lat_col = "latitude",
  lon_col = "longitude",
  distance,
  na_action = "NA as 0"
)

Arguments

occs_df

A data.frame of occurrence locations that incudes at least these three columns - latitude, longitude, and a distance in meters to be converted to decimal degrees.

lat_col

Name of column of latitude values. Caps sensitive.

lon_col

Name of column of longitude values. Caps sensitive.

distance

Name of column of distance values, in meters. Caps sensitive.

na_action

Enact distance options for NA values. Caps sensitive

Value

dist_dd A data.frame of latitude and longitude distances in units of degree decimal.


mlammens/occUncertain documentation built on May 6, 2024, 11:19 p.m.