AddFactor {rrepast} | R Documentation |
Adds a paramter to factor collection
Description
Builds up the factor collection.
Usage
AddFactor(factors = c(), lambda = "qunif", name, min, max,
int = FALSE)
Arguments
factors |
The current factor collection |
lambda |
The function to apply FUN(p,min,max) |
name |
The name of factor |
min |
The minimun of parameter p |
max |
The maximun of parameter p |
int |
Boolean for truncating the factor value |
Value
The collection of created factors
Examples
## Not run:
f<- AddFactor(name="Age",min=20,max=60)
f<- AddFactor(factors=f, name="Weight",min=50,max=120)
## End(Not run)
[Package rrepast version 0.8.0 Index]