| bc.list | R Documentation |
The bc.list() method
performs broadcasted operations on 2 Recursive arrays.
bc.list(x, y, f, ...)
## S4 method for signature 'ANY'
bc.list(x, y, f)
x, y |
conformable Recursive vectors/arrays (i.e. vectors/arrays of type |
f |
a function that takes in exactly 2 arguments, and returns a result that can be stored in a single element of a list. |
... |
further arguments passed to or from methods. |
A recursive array.
broadcast_operators
x.dim <- c(10, 2,2)
x.len <- prod(x.dim)
gen <- function(n) sample(list(letters, month.abb, 1:10), n, TRUE)
x <- array(gen(10), x.dim)
y <- array(gen(10), c(10,1,1))
bc.list(
x, y, \(x, y)x %in% y
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.