Learn R Programming

causaloptim (version 0.9.7)

linear_expression: Compute the scalar product of a vector of numbers and a vector of strings

Description

A helper function for evaluate_objective.

Usage

linear_expression(numbers, strings)

Value

A string consisting of the corresponding linear combination, including the sign of its first term.

Arguments

numbers

A numeric vector.

strings

A character vector of the same length as numbers.