rxExpandIfElse: Expand if/else clauses into mutiple different types of lines.

View source: R/dsl.R

rxExpandIfElseR Documentation

Expand if/else clauses into mutiple different types of lines.

Description

Expand if/else clauses into mutiple different types of lines.

Usage

rxExpandIfElse(model, removeInis = TRUE, removePrint = TRUE)

Arguments

model

Model can be a character, or a RxODE model. It needs to have normalized syntax, that is if (...){} has to be on the same line. The else statement must be on its own line with the closing bracket of the if statement on the previous line. This else statment must also contain the opening bracket, like the code else {}

removeInis

A boolean indicating if parameter initializations should be removed from the model.

removePrint

A boolean indicating if printing statements should be removed from the model.

Value

A named character vector. The names of the vector are the logical conditions, the values are the lines that satisfy the logical conditions.

Author(s)

Matthew L. Fidler


RxODE documentation built on March 23, 2022, 9:06 a.m.