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)
}
alexanderrobitzsch/sirt documentation built on Sept. 8, 2024, 2:45 a.m.