R/GenList.R

Defines functions GenList

Documented in GenList

#' Generate a single listed object from indexed files
#' @param name name of the object
#' @param endnum end number
#' @param rmFiles logical, if TRUE, remove original files
#' @export
#' 
GenList = function(name,endnum,rmFiles=TRUE){
  ls = list()
  for(i in 1:endnum){
    ls[[i]] = eval(parse(text=paste(name,1:endnum,sep="")[i]))
  }
  if(rmFiles ==TRUE){
  remove(list=paste(name,1:endnum,sep=""),envir=.GlobalEnv)}
  return(ls)
}
hsong1/PUlearning documentation built on May 16, 2017, 11:27 p.m.