replace_item | R Documentation |
replace the items of one object by another
replace_item(x, y, keep_extra = FALSE)
x |
number, character or list |
y |
another object, the class of y should be same as x |
keep_extra |
whether keep extra items in y |
replaced object
x <- list(A = 1, B = 3)
y <- list(A = 9, C = 10)
replace_item(x, y)
replace_item(x, y, keep_extra = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.