TestCor (version 0.0.0.9)

vectorize: Returns a vector containing the upper triangle of a matrix, without the diagonal.

Description

Returns a vector containing the upper triangle of a matrix, without the diagonal.

Usage

vectorize(mat)

Arguments

mat

a square matrix

Value

Returns a vector containing the upper triangle of a matrix, without the diagonal.

Examples

Run this code
# NOT RUN {
vectorize(matrix(1:9,3,3))
# }

Run the code above in your browser using DataLab