nosoi (version 1.0.0)

parseFunction: Parse function for later use

Description

Parse a user-provided function to get the vectorized version.

Usage

parseFunction(pFunc, param.pFunc, name, diff = FALSE, timeDep = FALSE,
  hostCount = FALSE, continuous = FALSE, stateNames = NA)

Arguments

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.

Value

list of parsed quantities:

  • "vect"Vectorized version of the function.

  • "vectArgs"Vector of arguments for the vectorized function.