Learn R Programming

MultiRNG (version 1.2.4)

loc.min: Minimum Location Finder

Description

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

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab