rename_stage {stagedtrees} | R Documentation |
Change the name of a stage in a staged event tree.
rename_stage(object, var, stage, new)
object |
an object of class |
var |
name of a variable in |
stage |
name of the stage to be renamed. |
new |
new name for the stage. |
No internal checks are performed and as side effect
stages can be joined, if e.g. new
is equal to the name
of a stage for variable var
.
a staged event tree object where stages stage
have been renamed to new
.