assign_speed | R Documentation |
It's difficult to get a simple speed definition yet robust to all kinds of dirty data cases. A sophisticated method is attempt first which should cover most common edge cases reasonably well. When it fails for extreme situations, the function will fall back to simpler method which is more naive but robust.
assign_speed(animals_dt, tele_list, device_error = 10)
animals_dt |
location |
tele_list |
the |
device_error |
standardized device error in meter. Example: GPS: 10, VHF: 100 |
To reduce duplicate calculation, speed calculation will use some columns
created in distance calculation. Always update data.table
with
assign_distance()
first then use assign_speed()
.
The input data.table
with assigned_speed
columns added. The name
assign
hint on this nature.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.