R/mergeProfilesLists.R

`mergeProfilesLists` <-
function (profilesList1, profilesList2, emptyCats=F, profNames=NULL){
### This function combines two lists of profiles
### Check 1: Are they of the same type?
if (length(profilesList1)!=length(profilesList2))
      {stop("ERROR!. Profiles Lists es must be of same length")
  }else{
      merged<-list()
      for(i in 1:length(profilesList1)){
        merged[[i]]<-mergeProfiles(profilesList1[[i]],profilesList2[[i]], emptyCats=emptyCats, profNames=profNames)
        names(merged)[i] <-names(profilesList1)[i]}
  }
  return(merged)
}

Try the goProfiles package in your browser

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

goProfiles documentation built on Nov. 8, 2020, 8:12 p.m.