Skip to contents

Replace element by another in list.

Usage

replace(object, x)

# S4 method for class 'pmx_list,pmx_element'
replace(object, x)

# S4 method for class 'pmx_list,pmx_list'
replace(object, x)

# S4 method for class 'pmx_list,list'
replace(object, x)

# S4 method for class 'compartments,compartment_property'
replace(object, x)

# S4 method for class 'parameters,single_array_parameter'
replace(object, x)

# S4 method for class 'parameters,double_array_parameter'
replace(object, x)

# S4 method for class 'statements_record,model_statement'
replace(object, x)

# S4 method for class 'code_records,model_statement'
replace(object, x)

# S4 method for class 'campsis_model,compartment'
replace(object, x)

# S4 method for class 'campsis_model,compartment_property'
replace(object, x)

# S4 method for class 'campsis_model,parameter'
replace(object, x)

# S4 method for class 'campsis_model,code_record'
replace(object, x)

# S4 method for class 'campsis_model,model_statement'
replace(object, x)

Arguments

object

list object

x

element to replace

Value

list object or an error if the element does not exist in the list