Learn R Programming

copa (version 1.40.0)

pSum: Compute all pairwise sums

Description

A function that computes all pairwise sums for a vector of numbers. This is an internal function and is not intended for use by end-users.

Usage

pSum(a)

Arguments

a
A numeric vector

Value

out
A square matrix (of dimension length(a) X length(a)) containing all pairwise sums.