R/get_dest_paths.R

Defines functions get_dest_paths

get_dest_paths <- function(dest_names, unique_dest_names, expand_dest_states){

    dest_paths <- list()
    for (i in seq_along(expand_dest_states) ){
        y <- expand_dest_states[i]
        dest <- unique_dest_names[i]
        dest_paths[[y]] <- which(dest_names == dest)
    }
    return(dest_paths)
}

Try the twig package in your browser

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

twig documentation built on April 12, 2025, 2:08 a.m.