Re: [R] Wrap column headers caption

2010-07-13 Thread Erik Iverson
Using this dataframe with quite long column headers, how can I wrap the text so that the columns are narrower. I was trying to use strwrap without success. Thanks reportDF <- structure(list(IDDate = c("3/12/2010", "3/13/2010", "3/14/2010", "3/15/2010"), FirstRunoftheYear = c("33 (119 ? 119)",

Re: [R] Wrap column headers caption

2010-07-13 Thread Henrique Dallazuanna
You can't try this: sapply(names(reportDF), toString, width = 10) abbreviate(names(reportDF)) On Tue, Jul 13, 2010 at 2:43 PM, Felipe Carrillo wrote: > Hi: > Using this dataframe with quite long column headers, how can I wrap the > text so that the columns are narrower. I was trying to use strw

[R] Wrap column headers caption

2010-07-13 Thread Felipe Carrillo
Hi: Using this dataframe with quite long column headers, how can I wrap the text so that the columns are narrower. I was trying to use strwrap without success. Thanks reportDF <- structure(list(IDDate = c("3/12/2010", "3/13/2010", "3/14/2010", "3/15/2010"), FirstRunoftheYear = c("33 (119 ? 119)"