Get breakdown of distance and time above/below speed limit
get_ship_limits(segs, limit_knots = 10, ship_name, dir_data = "data")
segs | data.frame with sf line segments and speed (km/hr) per segment,
as returned by |
---|---|
limit_knots | speed limit in knots |
ship_name | used for storing rds data |
dir_data | directory to cache data |
data.frame summarizing distance and speed, and sf line segments geometry