Skip to contents

Replace all occurrences in object.

Usage

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

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

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

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

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

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

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

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

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

# S4 method for 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