moves_speed: Return speed bins according to US/EPA MOVES model

View source: R/moves_speed.R

moves_speedR Documentation

Return speed bins according to US/EPA MOVES model

Description

speed_moves return an object of average speed bins as defined by US EPA MOVES. The input must be speed as miles/h (mph)

Usage

moves_speed(x, net)

Arguments

x

Object with class, "sf", "data.frame", "matrix" or "numeric" with speeds in miles/h (mph)

net

optional spatial dataframe of class "sf". it is transformed to "sf".

Examples

{
data(net)
net$mph <- units::set_units(net$ps, "miles/h")
net$speed_bins <- moves_speed(net$mph)
head(net)
moves_speed(net["ps"])
}

vein documentation built on May 29, 2024, 7:20 a.m.