Re: [R] Title splitting function

2010-01-22 Thread Ista Zahn
Hi Michael, It looks like you're having fun, I hope I don't spoil it for you: title <- "some variety of words that are descriptive" paste(strwrap(title, width=16), collapse="\n") -Ista On Fri, Jan 22, 2010 at 9:07 PM, Michael Pearmain wrote: > Hi All, > > I'm trying to write a function to autom

[R] Title splitting function

2010-01-22 Thread Michael Pearmain
Hi All, I'm trying to write a function to automatically split long strings so they will appear nicely in a chart i'm trying to create, Say i have a string title <- "some variety of words that are descriptive" In this instance i want to place carriage return where there is a space just prior to