copy.tri: Copy Matrix Triangles

View source: R/copy.tri.R

copy.triR Documentation

Copy Matrix Triangles

Description

Copy between lower left and upper right triangles of a matrix.

Usage

copy.tri(x, from = "lower")

Arguments

x

a matrix.

from

triangle to copy from. Can be "lower" or "upper".

Value

a matrix.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

x <- matrix(1:9, nrow = 3)
print(x)
copy.tri(x)


EricArcher/swfscMisc documentation built on April 12, 2024, 4:21 a.m.