Learn R Programming

ggcorrheatmap (version 0.1.2)

replace_default: Replace default elements in a named list with corresponding elements in a new list.

Description

Replace default elements in a named list with corresponding elements in a new list.

Usage

replace_default(
  default_param,
  new_param,
  add_new = FALSE,
  warning_context = NULL
)

Value

A named list where overlapping elements with overlapping names are replaced.

Arguments

default_param

Named list with elements to potentially replace ("defaults").

new_param

Named list with elements to replace with.

add_new

Logical, if TRUE elements with names unique to new_param will be added to the output.

warning_context

String to add to the beginning of warning message if any unsupported parameters are detected (if add_new is FALSE). Default (NULL) produces no warning.