moves_speed | R Documentation |
speed_moves
return an object of average speed bins as defined by
US EPA MOVES. The input must be speed as miles/h (mph)
moves_speed(x, net)
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". |
{
data(net)
net$mph <- units::set_units(net$ps, "miles/h")
net$speed_bins <- moves_speed(net$mph)
head(net)
moves_speed(net["ps"])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.