vein (version 0.7.8)

matvect: Matrix and vector multiplication

Description

matvect it is a helper function to multiply matrices with vector by rows or columns

Usage

matvect(df, x, by = "row")

Arguments

df

Numeric Data-frame or matrix.

x

Numeric vector.

by

Character, with two value "row" or "col"

Value

data-frame

Examples

Run this code
# 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 DataCamp Workspace