insert | R Documentation |
Given two named vectors/lists x
and y
and a list of names
this function replaces all entries of x
with the matching entries in y
.
insert(x, y, which)
x |
[ |
y |
[ |
which |
[ |
Either a vector or a list depending on the type of x
and y
.
x = list(a = 100, b = letters[1:3])
y = list(b = "hello", c = "world")
insert(x, y)
insert(y, x)
insert(x, y, which = "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.