add_nulls function

Add NULL values to non-existent list elements

Add NULL values to non-existent list elements

add_nulls(param_list, desired_params)

Arguments

  • param_list: A list in which the names correspond to parameter names and the values correspond to the values to be passed.
  • desired_params: A character vector of desired list elements.

Returns

A list with the desired elements as described by the desired_params argument. Any values that were missing in param_list will be returned with values of NULL.

Author(s)

Sean C. Anderson

  • Maintainer: Kelli F. Johnson
  • License: MIT + file LICENSE
  • Last published: 2019-11-08