Learn R Programming

Chicago (version 1.0.3)

modifySettings: Modify Settings

Description

Modify the settings in a chicagoData object.

Usage

modifySettings(cd, designDir=NULL, settings=list(), settingsFile=NULL)

Arguments

cd
A chicagoData object.
designDir
The new location of the design directory, e.g "~/resources/path" or NULL if not modified.
settings
A named list containing settings to modify.
settingsFile
The location of a file containing settings or NULL if not provided. Each row should contain the name of a setting, followed by whitespace, followed by the value of that setting.

Value

An object of class chicagoData.

Details

cd's settings are updated. For a list of available settings, see defaultSettings.

See Also

setExperiment, defaultSettings

Examples

Run this code
designDir <- file.path(system.file("extdata", package="Chicago"), "unitTestDesign")

cd <- setExperiment(designDir)

##Suppose I want to increase the zone in which Brownian noise is assumed to dominate
##(by default, 1500000):
print(settings(cd)$maxLBrownEst)

cd <- modifySettings(cd, settings=list(maxLBrownEst = 3000000L))
print(settings(cd)$maxLBrownEst)

Run the code above in your browser using DataLab