Skip to contents

Removes invalid values in a slot of a Panel object. This is usually called in .refineParameters.

Usage

.removeInvalidChoices(x, field, choices)

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.

Value

x where the slot named field is replaced only with the values that exist in choices.

Author

Kevin Rue-Albrecht