View source: R/replace_list_elements.R
replace_list_elements | R Documentation |
Replace list elements by name
replace_list_elements(list, replacement)
list |
original list |
replacement |
replacement list |
Finds and replaces list elements by name and throws an error if an element is not available in the original list. This is a local duplicate of the PKPDmisc copy for the VPC package to reduce dependency on PKPDmisc at this time.
## Not run:
list <- list(ipred = "ipred", dv = "dv", idv = "idv", "pred" = "pred")
replacement <- list(dv = "conc", idv = "time")
list <- replace_list_elements(list, replacement)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.