Outer function {Rfast} | R Documentation |
Outer function
Description
The outer function.
Usage
Outer(x, y, oper = "*")
Arguments
x |
A numerical vector. |
y |
A numerical vector. |
oper |
The available options are "*" (multiplication), "/" (division), "+" (sum), "-" (substraction), "^" (power raise), and " |
Details
The function is the same as R's "outer", but works with vectors only and probably has less capabilities, but faster.
Value
A matrix with all the combinations.
Author(s)
Manos Papadakis and Michail Tsagris
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com> and Michail Tsagris <mtsagris@uoc.gr>.
See Also
Examples
x <- rnorm(10)
y <- rnorm(10)
res<-Outer(x, y)
[Package Rfast version 2.1.0 Index]