Re: [R] automatically replacing the third period with a break

2014-03-18 Thread Dustin Fife
Perfect. Thanks! On Tue, Mar 18, 2014 at 2:26 PM, Thomas Lumley wrote: > On Tue, Mar 18, 2014 at 12:43 PM, Dustin Fife wrote: > >> I've got a dataset with really long column names (e.g., >> CYJ.OSU.OAV.UJC.BUT.RDI). What I'd like to do is replace the fourth period >> with a break ("\n") so that

Re: [R] automatically replacing the third period with a break

2014-03-18 Thread Thomas Lumley
On Tue, Mar 18, 2014 at 12:43 PM, Dustin Fife wrote: > I've got a dataset with really long column names (e.g., > CYJ.OSU.OAV.UJC.BUT.RDI). What I'd like to do is replace the fourth period > with a break ("\n") so that when it plots, it will not run off the page. > Here's what I've got so far: > >

[R] automatically replacing the third period with a break

2014-03-18 Thread Dustin Fife
I've got a dataset with really long column names (e.g., CYJ.OSU.OAV.UJC.BUT.RDI). What I'd like to do is replace the fourth period with a break ("\n") so that when it plots, it will not run off the page. Here's what I've got so far: create fake names function fake.names = function(x){ pas