#match by position
bind[x, y] <- c("foo", "bar")
#match by name
bind[a=x, b=y] <- c(b="bar", a="foo")
# one often wants to unpack the first and/or last, and rest of a list.
bind[first, ...=rest, last] <- letters
record <- list("Marilyn", "Monroe", dob=list("June", 1, 1926),
profession="film star", "born Norma Jean Baker",
donotuse="garbage", "1947 California Artichoke Queen",
list("August", 5, 1962))
bind[first, last,
dob=bind[month, day, year],
donotuse=, ...=notes, death] <- record
Run the code above in your browser using DataLab