R: This function splits a function based on + or - terms

rxSplitPlusQ {RxODE} | R Documentation

## This function splits a function based on + or - terms

### Description

It uses the parser and does not disturb terms within other functions. For example:

### Usage

    rxSplitPlusQ(x, level = 0, mult = FALSE)

### Arguments

`x` | Quoted R expression for splitting
`level` | Internal level of parsing
`mult` | boolean to split based on * and / expressions instead. By default this is turned off.

### Details

a*exp(b+c)+d*log(e-f)-g*f

would return

c("a * exp(b + c)", "d * log(e - f)", "- g * f")

### Value

character vector of the split expressions

### Author(s)

Matthew L. Fidler

[Package RxODE version 0.9.1-9 Index]