replaceMissingWithFirst: Replace with first choice

.replaceMissingWithFirstR Documentation

Replace with first choice

Description

Replace an NA or invalid value in a slot of a Panel object with the first valid choice. This is usually called in .refineParameters.

Usage

.replaceMissingWithFirst(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 with choices[1] if its value was previously NA or did not exist in choices.

Author(s)

Aaron Lun


csoneson/iSEE documentation built on Dec. 13, 2024, 6:14 a.m.