R/SRM_REPLACE_VALUES.R

Defines functions SRM_REPLACE_VALUES

## File Name: SRM_REPLACE_VALUES.R
## File Version: 0.03


SRM_REPLACE_VALUES <- function(x, val, pos, symm)
{
    x[ pos[1], pos[2] ] <- val
    if ( symm & ( pos[1] != pos[2] ) ){
        x[ pos[2], pos[1] ] <- val
    }
    return(x)
}

Try the srm package in your browser

Any scripts or data that you put into this service are public.

srm documentation built on Nov. 3, 2022, 5:06 p.m.