Vehicles: Construction function for class "Vehicles"

Description Usage Arguments Value Examples

View source: R/Vehicles.R

Description

Vehicles returns a tranformed object with class "Vehicles" and units 1/h. 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". The function emis_paved needs veh to be an array, therefore in this case, veh must be an array in the total fleet at each street and dimensions total fleet, hours and days

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Vehicles(x, ...)

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

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

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

Arguments

x

Object with class "Vehicles"

...

ignored

object

Object with class "Vehicles"

message

message with average age

Value

Objects of class "Vehicles" or "units"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
lt <- rnorm(100, 300, 10)
class(lt)
vlt <- Vehicles(lt)
class(vlt)
plot(vlt)
LT_B5 <- age_hdv(x = lt,name = "LT_B5")
print(LT_B5)
summary(LT_B5)
plot(LT_B5)
}

ibarraespinosa/vein documentation built on July 22, 2018, 2:44 a.m.