filter_last_loc: Select the last location for each individual

View source: R/filter_last_loc.R

filter_last_locR Documentation

Select the last location for each individual

Description

Select the last location for each individual

Usage

filter_last_loc(x, ..., order_by)

Arguments

x

A data frame containing collar data.

...

unquoted column name(s) to be used as a grouping variable e.g. if "id" is used, a single row will be returned for each id.

order_by

A character vector of the column(s) to be used to arrange the data e.g. if the date/time column is used rows will be ordered chronologically.

Value

A data frame with the last location for each individual.

Examples

## Not run: 
  filter_last_loc(collar_data, ... = id, order_by = dt)

## End(Not run)

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