replace_list_elements {vpc} | R Documentation |
Replace list elements by name
Description
Replace list elements by name
Usage
replace_list_elements(list, replacement)
Arguments
list |
original list |
replacement |
replacement list |
Details
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.
Examples
## 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)
[Package vpc version 1.2.2 Index]