R/lSort.R

Defines functions lSort

Documented in lSort

lSort <-
function(pL=list()){
  v<-c();oL<-list()
  if (length(pL)<1) stop("The list cannot be empty");
  for (u in pL) v<-sort(c(v,toString(u))); 
  for (i in 1:length(pL)) oL[[i]]<-strtoi(unlist(strsplit(v[i], "[,]")));
  oL;
}

Try the Necklaces package in your browser

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

Necklaces documentation built on Aug. 24, 2025, 9:07 a.m.