bundlelist: function to convert a character vector to a tagged list...

Usage Arguments Examples

View source: R/bundlelist.R

Usage

1
bundlelist(charvector)

Arguments

charvector

character vector where each element is currently in .GlobalEnv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (charvector) 
{
    Return = list()
    for (i in 1:length(charvector)) {
        Tmp = list(get(charvector[[i]]))
        names(Tmp) = charvector[[i]]
        Return = c(Return, Tmp)
    }
    return(Return)
  }

James-Thorson/utilities documentation built on Feb. 6, 2022, 2:35 p.m.