R: Outer function

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), "-" (sbtraction), "^" (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 two rows. In each row the X2 or G2 test statistic, its p-value and the degrees of freedom are returned.

### Author(s)

Manos Papadakis and Michail Tsagris

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com> and Michail Tsagris <mtsagris@yahoo.gr>.

### See Also

`mat.mult, vecdist`

### Examples

    x <- rnorm(10)
    y <- rnorm(10)
    res<-Outer(x, y)

[Package Rfast version 2.0.0 Index]