Skip to contents

This function checks if the provided `params` list is `NA` or missing any elements. If `params` is `NA`, it assigns a list of default parameters. If any element is missing from `params`, it adds the missing element with its respective default value.

Usage

set_default_params(params)

Arguments

params

A list of parameters to be checked and updated with default values if necessary.

Value

A list of parameters with all required elements, either from the input `params` or with added default values for any missing elements.