condense_control: Condense control object into strictly smaller control object
Description
This function is used to help the hierarchy of control functions used
throughout the tidymodels packages. It is now assumed that each control
function is either a subset or a superset of another control function.
Usage
condense_control(x, ref)
Value
A control object with the same elements and classes of ref, with
values of x.
Arguments
x
A control object to be condensed.
ref
A control object that is used to determine what element should be
kept.