Replace an NA
or invalid value in a slot of a Panel object with the first valid choice.
This is usually called in .refineParameters
.
Arguments
- x
An instance of a Panel class.
- field
String containing the name of the relevant slot.
- choices
Character vector of permissible values for this slot.