apollo_insertScaling: Scales variables inside a function

Description Usage Arguments Value

View source: R/apollo_insertScaling.R

Description

It changes the syntax of the function by replacing variable names for their scaled form, e.g. x –> x*apollo_inputs$apollo_scale[["x"]]. In assignments, it only scales the right side of the assignment.

Usage

1

Arguments

e

Function, expression, call or symbol to alter.

sca

Named numeric vector with the scales. The names in these vectors determine which variables should be scaled.

Value

A function, expression, call or symbol with the corresponding variables scaled.


byu-transpolab/apollo-byu documentation built on Dec. 19, 2021, 12:49 p.m.