define {rcausim} | R Documentation |
Define a function in the list of functions
Description
Define a function in the list of functions
Usage
define(func, which, what)
Arguments
func |
Functions, an object class generated by
|
which |
Which, a character of length 1 indicating a vertex name for which function is defined. The vertex name must be defined in 'Functions'. |
what |
What, a function to be defined. It must use all and only the specified arguments for the vertex in 'Functions', if not previously defined. |
Value
A list of either functions or character vectors of arguments for
function. It can be continuously defined or redefined by a user using
define
function. If all elements of the list are functions, then it
can be an input for generating the simulated data.
Examples
data(edges)
functions <- function_from_edge(edges)
function_B <- function(n){ rnorm(n, 90, 5) }
functions <- define(functions, 'B', function_B)
[Package rcausim version 0.1.1 Index]