morph_gps: Standardize GPS data to collar format

View source: R/morph_gps.R

morph_gpsR Documentation

Standardize GPS data to collar format

Description

Standardize GPS data to collar format

Usage

morph_gps(
  x,
  id_col = NULL,
  dt_col = NULL,
  dt_format = "%Y-%m-%d %H:%M:%S",
  lon_col = NULL,
  lat_col = NULL,
  meta = list(),
  extra = character()
)

Arguments

x

data.frame of GPS data with at least columns ID, Latitude, Longitude and Date-Time.

id_col

Unquoted name of the ID column that signals the unique identifier for this collar.

dt_col

Unquoted name of the date time column that represents the acquisition time.

dt_format

character string giving a date-time format as used by strptime.

lon_col

Unquoted name of the column containing Longitude location information. See Details.

lat_col

Unquoted name of the column containing Latitude location information. See Details.

meta

Key-value pairs supplied as a named list specifying new columns and values to be added to data. See Details.

extra

Unquoted column names of those columns beyond id, datetime, lon and lat that you wish to retain in the data set.

Details

stuff

Value

inherits from data.frame tbl_df

Examples

2+2

Huh/collar documentation built on Aug. 5, 2022, 11:02 p.m.