bin_tracking_data: Bin tracking data

Description Usage Arguments Details Value

View source: R/binning.R

Description

Aggregate tracking data with a specific spatial and temporal resolution

Usage

1
bin_tracking_data(data, spatial = 1000, temporal = "week")

Arguments

data

Tracking data to be aggregated with the columns "organismID", "decimalLongitude", "decimalLatitude", "eventDate" and optionally "detections".

spatial

Spatial resolution in meters to be used to aggregate the data (default 1000).

temporal

Temporal resolution to be used to aggregate the data (default "week").

Details

The aggregation is done in a spatiotemporal grid based on the provided spatial and temporal resolution. The spatial aggregation is done on a Behrmann equal area grid with as cell size the specified spatial resolution in meters. The temporal aggregation accepts either on of the following string literals: "day", "week", "month", "year" or a date time format string e.g. "%Y-%m-%d"

Value

Data frame with columns "organismID", "decimalLongitude", "decimalLatitude", "eventDateArrival", "eventDateDeparture" and "detections".


iobis/ziptrack documentation built on May 29, 2019, 4:46 a.m.