R/mnlfa_create_vector_with_names.R

Defines functions mnlfa_create_vector_with_names

## File Name: mnlfa_create_vector_with_names.R
## File Version: 0.02

mnlfa_create_vector_with_names <- function( vec, val=0 )
{
    NP <- length(vec)
    res <- rep(val, NP)
    names(res) <- vec
    return(res)
}

Try the mnlfa package in your browser

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

mnlfa documentation built on May 18, 2022, 9:05 a.m.