R/control.utilities.R
control.remap.RdGiven a control.list, and two prefixes, from and to,
overwrite the elements starting with to with the corresponding
elements starting with from.
control.remap(control, from, to)An control.list object.
(l <- set.control.class("test", list(a.x=1, a.y=2)))
#> Control parameter list generated by ‘test’ or equivalent. Non-empty parameters:
#> a.x: 1
#> a.y: 2
control.remap(l, "a", "b")
#> Control parameter list generated by ‘test’ or equivalent. Non-empty parameters:
#> a.x: 1
#> a.y: 2
#> b.x: 1
#> b.y: 2