View source: R/nosoi_utilityFunctions.R
parseFunction | R Documentation |
Parse a user-provided function to get the vectorized version.
parseFunction(
pFunc,
param.pFunc,
name,
diff = FALSE,
timeDep = FALSE,
hostCount = FALSE,
continuous = FALSE,
stateNames = NA
)
pFunc |
a function |
param.pFunc |
a named list of arguments |
name |
the name of the function |
diff |
is the function differential according to state/env.variable? (TRUE/FALSE) |
timeDep |
is the function differential according to absolute time? (TRUE/FALSE) |
hostCount |
is the function differential according to host count? (TRUE/FALSE) |
continuous |
is the function to be used in a continuous space? (TRUE/FALSE) |
stateNames |
name of the states (vector) in case of discrete structure. |
list of parsed quantities:
"vect" Vectorized version of the function.
"vectArgs" Vector of arguments for the vectorized function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.