subs_vec {caracas}R Documentation

Substitute af vector of symbols for a vector of values

Description

Substitute af vector of symbols for a vector of values

Usage

subs_vec(s, x, v)

Arguments

s

Expression

x

Names of symbol (vector)

v

Values for x (vector)

See Also

subs(), subs_lst()

Examples

if (has_sympy()) {
   x <- as_sym(paste0('x', 1:3))
   e <- 2*x^2
   e
   subs_vec(e, x, 1:3)
   subs_vec(e, x, x^2)
}


[Package caracas version 1.1.0 Index]