replace_list_nulls | R Documentation |
NULL
items in a defined depth of a list.Replace NULL
items in a defined depth of a list.
replace_list_nulls(l, replacement = NA, depth = 2L)
l |
A list. |
replacement |
A replacement for |
depth |
An integer scalar: depth of |
The list l
with NULL
items replaced by replacement
in the defined depth
.
replace_list_nulls(list(a = list(b = 1, c = NULL)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.