Learn R Programming

campsismod (version 1.2.1)

replace: Replace element by another in list.

Description

Replace element by another in list.

Usage

replace(object, x)

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

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

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

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

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

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

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

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

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

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

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

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

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

Value

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

Arguments

object

list object

x

element to replace