Hi, Is it possible to define at which point a line-break is happening in R-output? I for example would rather like to scroll horizontally in a data-frame with a lot of columns instead of having a lot of breakpoints in the data.frame (to fit the screen). Can you control that? Can you tell R to do a line-break after x symbols of output for example? thanks!
On Aug 27, 2011, at 8:19 PM, Martin Batholdy wrote:> Hi, > > > Is it possible to define at which point a line-break is happening in > R-output? > > I for example would rather like to scroll horizontally in a data- > frame with a lot of columns > instead of having a lot of breakpoints in the data.frame (to fit the > screen). > > > Can you control that? > Can you tell R to do a line-break after x symbols of output for > example?options() with a width argument ... and whatever GUI you uae may have further setting, but per usual none of that information was provided.>-- David Winsemius, MD West Hartford, CT
If your main goal is to look at a data frame and you are ok with scrolling, then look at the View function (note capitalization) as an alternative to just printing the data frame. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Martin Batholdy > Sent: Saturday, August 27, 2011 6:19 PM > To: R Help > Subject: [R] control line break behavior of R output > > Hi, > > > Is it possible to define at which point a line-break is happening in R- > output? > > I for example would rather like to scroll horizontally in a data-frame > with a lot of columns > instead of having a lot of breakpoints in the data.frame (to fit the > screen). > > > Can you control that? > Can you tell R to do a line-break after x symbols of output for > example? > > > thanks! > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.