Learn R Programming

PopED (version 0.3.2)

test_for_min: Test if any matrix element is above a minimum value.

Description

Function tests is any matrix element is above a minimum value. For those elements the function sets those values to the minimum value.

Usage

test_for_min(mat, min_mat)

Arguments

mat

A matrix.

min_mat

A matrix the same size as mat with the minimum allowed value of that element.

Value

A matrix

See Also

Other matrix_manipulation: diag_matlab, test_for_max, test_for_zeros

Examples

Run this code
# NOT RUN {
test_for_min(cbind(2,3,4,5,6),cbind(4,4,4,4,4))

test_for_min(ones(6)*45,ones(6)*40)




# }

Run the code above in your browser using DataLab