Learn R Programming

causaloptim (version 0.9.1)

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)

Arguments

numbers

A numeric vector.

strings

A character vector of the same length as numbers.

Value

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