Learn R Programming

rbi (version 0.6.0)

bi_model_replace_all: replace all instances of one string with another

Description

Replace all instances of one string with another in a libbi model

Arguments

old
the string to be replaced
new
the string to replace the old string

Value

the updated bi model

See Also

bi_model

Examples

Run this code
model_file_name <- system.file(package="rbi", "PZ.bi")
PZ <- bi_model(filename = model_file_name)
PZ$replace_all("alpha", "beta")

Run the code above in your browser using DataLab