Learn R Programming

rrepast (version 0.8.0)

AddFactor: 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

Run this code
# NOT RUN {
   f<- AddFactor(name="Age",min=20,max=60)
   f<- AddFactor(factors=f, name="Weight",min=50,max=120)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab