Learn R Programming

rrepast (version 0.4.0)

AddFactor: Adds a paramter to factor collection

Description

Builds up the factor collection.

Usage

AddFactor(factors = c(), lambda = "qunif", name, min, max)

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

Value

  • The collection of created factors

Examples

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

Run the code above in your browser using DataLab