changeParameter: Change analysis parameters

changeParameter<-R Documentation

Change analysis parameters

Description

Change analysis parameters.

Usage

changeParameter(x, parameterName, elements = analysisElements()) <- value

## S4 replacement method for signature 'AnalysisParameters'
changeParameter(x, parameterName, elements = analysisElements()) <- value

Arguments

x

S4 object of class AnalysisParameters

parameterName

name of the parameter to change

elements

character vector of analysis elements to target parameter change. Can be any returned by analysisElements().

value

New value of the parameter

Details

For the parameter name selected, all parameters with that name will be altered.

Value

An S4 object of class AnalysisParameters.

Examples

p <- analysisParameters('pre-treatment')

changeParameter(p,'cls') <- 'day'

print(p)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.