Learn R Programming

animl (version 3.2.0)

remove_diagonal: Removes the diagonal elements from a square matrix.

Description

Removes the diagonal elements from a square matrix.

Usage

remove_diagonal(A)

Value

martix A with diagonals removed

Arguments

A

square matrix

Examples

Run this code
if (FALSE) cleaned_dist <- remove_diagonal(dist_matrix)

Run the code above in your browser using DataLab