View source: R/replace_list_elements.R
replace_list_elements | R Documentation |
replace list elements by name
replace_list_elements(.list, replacement, add = TRUE)
.list |
original list |
replacement |
replacement list |
add |
add replacement values if they don't exist, default = TRUE |
Finds and replaces list elements by name and throws an error if an element is not available in the original list.
olist <- list(dv = "dv", idv = "idv", notreplace = "somethingelse") replacement <- list(dv = "conc") combined_list <- replace_list_elements(olist, replacement)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.