R/replace_values_vector.R

Defines functions replace_values_vector

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

replace_values_vector <- function(vec, vec_names, value)
{
    if ( length(vec_names) > 0 ){
        vec[ vec_names ] <- value
    }
    return(vec)
}

Try the miceadds package in your browser

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

miceadds documentation built on May 29, 2024, 11:05 a.m.