full: Full symmetric matrix

Description Usage Arguments Details Value Author(s) See Also

View source: R/full.R

Description

Converts a column order distance matrix to a full symmetric matrix.

Usage

1
full(v)

Arguments

v

lower-triangular column order distance matrix.

Details

Converts lower-triangular distance matrix as written by R/S-Plus functions into a symmetric matrix. Note that lower() used on a 1x1 matrix will return the single element, which may not be the correct behavior in all cases, while full() used on a single element will return a 2x2 matrix.

Value

a full symmetric matrix.

Author(s)

Sarah Goslee, Sarah.Goslee@ars.usda.gov

See Also

lower


ecodist documentation built on May 19, 2017, 7:21 p.m.

Search within the ecodist package
Search all R packages, documentation and source code