Vehicles returns a tranformed object with class "Vehicles" and units 'veh'. The type of objects supported are of classes "matrix", "data.frame", "numeric" and "array". If the object is a matrix it is converted to data.frame. If the object is "numeric" it is converted to class "units".

Vehicles(x, ..., time)

# S3 method for Vehicles
print(x, ...)

# S3 method for Vehicles
summary(object, ...)

# S3 method for Vehicles
plot(x, ..., message = TRUE)

Arguments

x

Object with class "Vehicles"

...

ignored

time

Character to be the time units as denominator, eg "1/h"

object

Object with class "Vehicles"

message

message with average age

Value

Objects of class "Vehicles" or "units"

Examples

if (FALSE) { lt <- rnorm(100, 300, 10) class(lt) vlt <- Vehicles(lt) class(vlt) plot(vlt) LT_B5 <- age_hdv(x = lt,name = "LT_B5") summary(LT_B5) plot(LT_B5) }