Learn R Programming

dmbc (version 1.0.3)

check_list_na: 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)

Value

A list with all elements added.

Arguments

orig

A list whose content must be checked.

des

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

Author

Sergio Venturini sergio.venturini@unicatt.it

Examples

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

Run the code above in your browser using DataLab