R/format.wrap.labels.R

Defines functions format.wrap.labels

format.wrap.labels<-function(x, width = 15) {
  if (is.list(x))
  {
    lapply(x, wrap.labels, width)
  } else {
    sapply(x
           ,function(y) paste(strwrap(y, width)
           ,collapse = "\n"), 
           USE.NAMES = FALSE
           )
  }
  
}
burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.