Learn R Programming

GROAN (version 1.3.1)

addRegressor: Add an extra regressor to a Workbench

Description

This function adds a regressor to an existing GROAN.Workbench object.

Usage

addRegressor(wb, regressor, regressor.name = regressor, ...)

Value

an updated instance of the original GROAN.Workbench

Arguments

wb

the GROAN.Workbench instance to be updated

regressor

regressor function

regressor.name

string that will be used in reports. Keep in mind that when deciding names.

...

extra parameters are passed to the regressor function

See Also

createWorkbench GROAN.run

Examples

Run this code
#creating a Workbench with all default arguments
wb = createWorkbench()
#adding a second regressor
wb = addRegressor(wb, regressor = phenoRegressor.dummy, regressor.name = 'dummy')

if (FALSE) {
#trying to add again a regressor with the same name would result in a naming conflict error
wb = addRegressor(wb, regressor = phenoRegressor.dummy, regressor.name = 'dummy')}

Run the code above in your browser using DataLab