R/wordwrap.R

Defines functions wordwrap

Documented in wordwrap

wordwrap <-
function(s, width=20, break.word=FALSE){
  if(!break.word) {
    wrapped=paste(strwrap(s,width),collapse="\n")
  } else     wrapped=strfit(s,width)
  return(wrapped)
}
datapplab/pathview documentation built on March 30, 2024, 9:06 a.m.