powered by
matvect it is a helper function to multiply matrices with vector by rows or columns
matvect
matvect(df, x, by = "row")
Numeric Data-frame or matrix.
Numeric vector.
Character, with two value "row" or "col"
data-frame
# NOT RUN { # Do not run data(net) veh <- age_ldv(net$ldv[1:4], agemax = 4) matvect(veh, 1:4) # }
Run the code above in your browser using DataLab