Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/listOperations.R
The outer product of the lists X and Y is the matrix M with dimension c(length(X), length(Y)) where element M[i, j] = FUN(X[[i]], Y[[j]]).
1 |
X |
a list. |
Y |
a list. |
FUN |
a function to use on the outer product, taking elements of X and Y as arguments. |
... |
additional arguments passed to FUN. |
X and Y must be suitable arguments for FUN. Each will be extended by rep
to length the products of the lengths of X and Y before FUN is called.
FUN is the applied to these two extended vectors by mapply
.
When they exist, the names of X and Y will be used as rownames and colnames.
A matrix with dimension c(length(X), length(Y)) where element M[i, j] = FUN(X[[i]], Y[[j]]).
Antoine Filipovic Pierucci
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.