AddFactor: Adds a paramter to factor collection

Description Usage Arguments Value Examples

View source: R/RRepast.R

Description

Builds up the factor collection.

Usage

1
2
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

1
2
3
4
## Not run: 
   f<- AddFactor(name="Age",min=20,max=60)
   f<- AddFactor(factors=f, name="Weight",min=50,max=120)
## End(Not run)

antonio-pgarcia/RRepast documentation built on Feb. 22, 2020, 1:20 a.m.