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)
}

Try the pathview package in your browser

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

pathview documentation built on Dec. 12, 2020, 2 a.m.