Learn R Programming

vein (version 1.1.3)

moves_speed: 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

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

Run the code above in your browser using DataLab