Get breakdown of distance and time above/below speed limit

get_ship_limits(segs, limit_knots = 10, ship_name, dir_data = "data")

Arguments

segs

data.frame with sf line segments and speed (km/hr) per segment, as returned by get_ship_segments

limit_knots

speed limit in knots

ship_name

used for storing rds data

dir_data

directory to cache data

Value

data.frame summarizing distance and speed, and sf line segments geometry