check_list_na {dmbc}R Documentation

Auxiliary function to recursively check NAs in a list.

Description

check_list_na() compares two lists and fills in the missing elements in the first with those included in the second. The comparison is recursive in the sense that the process is repeated for all lists included in those given.

Usage

check_list_na(orig, des)

Arguments

orig

A list whose content must be checked.

des

A list to use as a reference with which compare the first one.

Value

A list with all elements added.

Author(s)

Sergio Venturini sergio.venturini@unicatt.it

Examples

G <- 5
prior <- list(eta = list(a = rep(1, G), b = rep(2, G)))
check_list_na(prior, dmbc_prior())


[Package dmbc version 1.0.1 Index]