DDMMSS_to_DD: DDMMSS_to_DD

View source: R/DDMMSS_to_DD.R

DDMMSS_to_DDR Documentation

DDMMSS_to_DD

Description

This is a utility that will replace the DDMMSS columns of a dataframe with the same coordinates in decimal degrees.

Usage

DDMMSS_to_DD(
  df = NULL,
  lat.field = "LATITUDE",
  lon.field = "LONGITUDE",
  WestHemisphere = T
)

Arguments

df

a dataframe to be analyzed. If left NULL, a value for db should be provided

lat.field

the default is "LATITUDE". This is the name of the field holding latitude values (in decimal degrees)

lon.field

the default is "LONGITUDE". This is the name of the field holding longitudevalues (in decimal degrees)

WestHemisphere

the default is TRUE. It true, this ensure that all returned Longitudes are negative. If false, the original sign is retained.

Value

a data.frame

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other general_use: DDMMx_to_DD(), aggregator(), clip_by_poly(), combine_lists(), df_qc_spatial(), df_sf_to_gpkg(), df_to_sf(), drop_cols(), prepare_shape_fields(), subset_by_time(), updateCheck()


Maritimes/Mar.utils documentation built on Feb. 12, 2024, 11:38 p.m.