Skip to contents

Replace all occurrences in object.

Usage

replaceAll(object, pattern, replacement, ...)

# S4 method for class 'character,variable_pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'character,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'model_statement,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'equation,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'if_statement,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'compartment_property,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'code_record,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'code_records,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'campsis_model,pattern,character'
replaceAll(object, pattern, replacement, ...)

# S4 method for class 'campsis_model,character,character'
replaceAll(object, pattern, replacement, ...)

Arguments

object

generic object (e.g. model, code_record(s), etc.)

pattern

pattern to be replaced

replacement

replacement string

...

extra arguments

Value

the same object with all occurrences replaced