Check if formula
Check for simple formula
Extract simple part from formula
parameters are stored as extra arguments the order of the dynamical variables (and "t") is important and will be used later
Create a functions with a vector argument of state, for use in rk()
Simplifying expressions, e.g. pure numbers go to numbers Written by Aaron Mayerson, May 2013
.is.formula(x).is.simple.formula(x)
.simple.part(x)
.make.data.frame(x)
.merge_data_frames(a, b)
.squash_names(object, sep = ":")
fetchDynamics(x)
dynamicsFunction(DE, additionalAssignments = list())
rkFunction(DE, additionalArguments = list())
.makeNice(form, params = all.vars(form))
.do.safe.call(what, args, quote = FALSE, envir = parent.frame(), ...)
an object
a data frame
a data frame
an object
a character
representation of DE, the result of fetchDynamics
a list return a function
either a function or a non-empty character string naming the function to be called.
a list of arguments to the function call. The names attribute of args gives the argument names.
a logical value indicating whether to quote the arguments.
an environment within which to evaluate the call. This will be most useful if what is a character string and the arguments are symbols or quoted expressions.
a formula
a formula
object to be converted
a list
representation of DE, the result of fetchDynamics
a list return a function
TRUE for a formula, FALSE otherwise, even if evaluation throws an error
TRUE if formula has no left-hand side or a simple right-hand side
(e.g., NULL
, ., 1, or 0)
simple part of formula or NULL if formula is not simple
a data frame
a data frame
a character vector
a list with two slots: names and functions
The result of the (evaluated) function call.
.make.data.frame
converts things to a data frame
.merge_data_frames
is a wrapper around merge
.squash_names
squashes names of a data frame into a single string
.do.safe.call
avoids conflicts between named arguments and ... by taking named arguments
preferentially.