R/create_list_from_collection_of_tables_in_memory.R

Defines functions create_list_from_collection_of_tables_in_memory

Documented in create_list_from_collection_of_tables_in_memory

#' Take all tabular data and make each datum a list member
#' 
#' This function doesn't take any inputs. Just call it. 
#' 
#' @export


create_list_from_collection_of_tables_in_memory = function(){
  o = list()
  nam = c()
  objs = ls(envir=.GlobalEnv)
  for(i in 1:length(objs)){
    Obj_i = get(objs[i])
    if( is.data.frame(Obj_i) | is.matrix(Obj_i) ){
      o = lappend(o,Obj_i)
      nam = c(nam,objs[i])
    }
  }
  names(o) = nam
  o
} 
msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.