age_ldv returns amount of vehicles at each age
age_ldv
age(x, type = "weibull", a = 14.46, b = 4.79, name = "veh", agemin = 1, agemax = 50, k = 1, net, verbose = FALSE, namerows)
Numeric; numerical vector of vehicles with length equal to lines features of road network
Character; any of "gompertz", "double_logistic", "weibull" and "weibull2"
Numeric; parameter of survival equation
Character; of vehicle assigned to columns of dataframe
Integer; age of newest vehicles for that category
Integer; age of oldest vehicles for that category
Numeric; multiplication factor. If its length is > 1, it must match the length of x
SpatialLinesDataFrame or Spatial Feature of "LINESTRING"
Logical; message with average age and total numer of vehicles
Any vector to be change row.names. For instance, name of regions or streets.
dataframe of age distrubution of vehicles
# NOT RUN { { data(net) PC_E25_1400 <- age(x = net$ldv) plot(PC_E25_1400) PC_E25_1400 <- age(x = net$ldv, net = net) plot(PC_E25_1400) } # }
Run the code above in your browser using DataCamp Workspace