walkMaker: Concatenate tracks into a walk.

View source: R/walks.R

walkMakerR Documentation

Concatenate tracks into a walk.

Description

Concatenate a vector of track names that represent a contiguous “walk” into a data frame.

Usage

walkMaker(
  trkdata,
  trkinfo,
  walkIDs,
  startIDs = walkIDs[1:2],
  findOrder = FALSE,
  basedate = "2022-01-01",
  verbose = FALSE
)

Arguments

trkdata

A data frame that contains coordinates and information about each track.

trkinfo

A data frame that contains information about each track.

walkIDs

A vector of track name strings that can be appended into a contiguous “walk”. Generally first two names should be the order of the first two tracks in the “walk”.

startIDs

A length two vector of track name strings that indicate the order of the first two tracks in the “walk”. Defaults to the first two items in walkIDs.

findOrder

A logical that indicates that the track names in walkIDs are NOT in walking order and an attempt should be made to place the tracks in a walking order based on the From and To fields in trkinfo. See notes below.

basedate

A string with a date that will serve as the base date for the dummy times in the returned data frame. Defaults to "2022-01-01".

verbose

A logical for whether the progress of connecting tracks should be displayed or not.

Details

NONE YET

Value

A date frame with the same variables as trkdata, but only with the tracks in walkIDs and in order of the “walk”.

Note

If any of the track names in walkIDs are repeated because the “walk” will include repeated walkings of some tracks then the user must put the track names in the order to be walked in walkIDs and findOrder must be FALSE.

Author(s)

Derek H. Ogle

See Also

walkMap

Examples

## None yet.

droglenc/gpxhelpers documentation built on Dec. 12, 2024, 1:33 a.m.