AtomicArgs | R Documentation |
Compose default atomic values merged with user values
AtomicArgs(u, a)
u |
user argument values. |
a |
default argument values. |
AtomicArgs
returns an R object of the same type as a
.
a <- list(x = "a", y = "b", z = "c")
AtomicArgs(u = NULL, a)
AtomicArgs(u = "d", a)
AtomicArgs(u = c(y = "d"), a)
AtomicArgs(u = list(y = "d"), a)
AtomicArgs(u = c(x = "d", z = "d"), a)
AtomicArgs(u = list(x = "d", z = "d"), a)
a <- list(x = 0, y = 0, z = 0)
m <- matrix(1:4, 2, 2)
AtomicArgs(u = m, a)
AtomicArgs(u = list(x = m), a)
AtomicArgs(u = list(y = m), a)
AtomicArgs(u = list(z = m), a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.