R/sirt_add_pos.R

Defines functions sirt_add_pos

## File Name: sirt_add_pos.R
## File Version: 0.01

sirt_add_pos <- function(x, pos, val)
{
    y <- x
    y[pos] <- y[pos] + val
    return(y)
}

Try the sirt package in your browser

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

sirt documentation built on Aug. 11, 2023, 5:07 p.m.