loc.min: Minimum Location Finder

Description Usage Arguments Value Examples

View source: R/loc.min.R

Description

This function identifies the location of the minimum value in a square matrix.

Usage

1
loc.min(my.mat,d)

Arguments

my.mat

A square matrix.

d

Dimensions of the matrix.

Value

A vector containing the row and column number of the minimum value.

Examples

1
2
cmat<-matrix(c(1,0.2,0.3,0.2,1,0.2,0.3,0.2,1), nrow=3, ncol=3)
loc.min(my.mat=cmat, d=3)

Example output

[1] 1 2

MultiRNG documentation built on March 6, 2021, 1:06 a.m.