Replace list elements by name
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.