calculate_sdr | R Documentation |
Calculates squared displacement rate for a given speed and duration
calculate_sdr(speed = 50, time, speed_unit = c("km/h", "m/s"))
speed |
|
time |
|
speed_unit |
|
Returns a numeric vector (of length 1) with the SDR in m^2/s
.
Johannes Signer and Brian J. Smith
get_displacement()
# Assume a cheetah can sprint 100 km/h for 60 seconds
calculate_sdr(speed = 100, time = seconds(60), speed_unit = "km/h")
# 46296.3 m^2/s
# What is expected displacement in 1 h at that SDR?
get_displacement(46296.3, hours(1))
# 12909.95 m = 12.9 km/h (much slower than sprint speed!)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.