age_moto: Returns amount of vehicles at each age

Description Usage Arguments Value Examples

View source: R/age_moto.R

Description

Returns amount of vehicles at each age

Usage

1
2
age_moto(x, name, a = 0.2, b = 17, agemin = 1, agemax = 50, k = 1,
  bystreet = F, message = TRUE)

Arguments

x

numerical vector of vehicles

name

of vehicle assigned to columns of dataframe

a

parameter of survival equation

b

parameter of survival equation

agemin

age of newest vehicles for that category

agemax

age of oldest vehicles for that category

k

multiplication factor

bystreet

when TRUE it is expecting that 'a' and 'b' are numeric vectors with length equal to x

message

message with average age and total numer of vehicles

Value

dataframe of age distrubution of vehicles

Examples

1
2
3
4
5
6
7
## Not run: 
# Do not run
m <- rnorm(100, 300, 10)
MOTO_E25_500 <- age_moto(x = m,name = "M_E25_500")
plot(MOTO_E25_500)

## End(Not run)

ibarraespinosa/vein documentation built on Feb. 5, 2018, 11:34 p.m.