Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rxExpandIfElse

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

Facilities for Simulating from ODE-Based Models

v1.0.9
GPL (>= 3)
Authors
Matthew L. Fidler [aut] (<https://orcid.org/0000-0001-8538-6691>), Melissa Hallow [aut], Wenping Wang [aut, cre], Zufar Mulyukov [ctb], Alan Hindmarsh [ctb], Awad H. Al-Mohy [ctb], Matt Dowle [ctb], Cleve Moler [ctb], David Cooley [ctb], Drew Schmidt [ctb], Arun Srinivasan [ctb], Ernst Hairer [ctb], Gerhard Wanner [ctb], Goro Fuji [ctb], Hadley Wickham [ctb], Jack Dongarra [ctb], Linda Petzold [ctb], Martin Maechler [ctb], Matteo Fasiolo [ctb], Morwenn [ctb], Nicholas J. Higham [ctb], Roger B. Sidje [ctb], Simon Frost [ctb], Kevin Ushey [ctb], Yu Feng [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.