Learn R Programming

bullseye (version 0.1.2)

as.matrix.pairwise: Converts a pairwise to a symmetric matrix. Uses the first entry for each (x,y) pair.

Description

Converts a pairwise to a symmetric matrix. Uses the first entry for each (x,y) pair.

Usage

# S3 method for pairwise
as.matrix(x, ...)

Value

A symmetric matrix

Arguments

x

An object of class pairwise

...

other arguments