Remove a component from sim file

removeComponent(sim, pattern)

Arguments

sim

A character vector of sim

pattern

A character string containing a regular expression to match a component