Description Usage Arguments Value

This returns a mutated Activatr DF with a new column representing distance, in meters. The distance is determined by looking at the lat/lon delta between the current point and the previous point: hence, it is always NA for the first row in the data frame.

1 | ```
mutate_with_distance(df, method = c("2D", "3D"), lead = 0, lag = 1)
``` |

`df` |
A Activatr DF: a tibble from |

`method` |
If 2D (default), ignores elevation. If 3D, includes elevation. |

`lead` |
How far ahead to look for the "end" point |

`lag` |
How far behind to look for the "start" point |

That same Activatr DF, but with a new `distance`

column, in
meters.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.