replace_list_elements: Replace list elements by name

Description Usage Arguments Details Examples

View source: R/replace_list_elements.R

Description

Replace list elements by name

Usage

1

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

1
2
3
4
5
6
## 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)

vpc documentation built on Jan. 16, 2021, 5:44 p.m.