R/sirt_vector_with_names.R

Defines functions sirt_vector_with_names

## File Name: sirt_vector_with_names.R
## File Version: 0.06

sirt_vector_with_names <- function(value, names)
{
    vec <- rep( value, length(names) )
    if ( ! is.numeric(names) ){
        names(vec) <- names
    }
    return(vec)
}

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.