Re: [R] Printing left-justified character strings

2018-06-06 Thread zListserv
In the meantime, all is well and I'm grateful for your help. > On 2018-06-06, at 07:06, Duncan Murdoch wrote: > > On 06/06/2018 6:28 AM, zListserv wrote: >> Sorry. Here's how I re-defined print, print.default, and print.data.frame: >> print = function(df, ..., righ

Re: [R] Printing left-justified character strings

2018-06-06 Thread zListserv
abc 16 a 17 ab 18 abc 19 a 20 ab 21 abc > On 2018-06-05, at 20:16, Duncan Murdoch wrote: > > On 05/06/2018 7:49 PM, zListserv wrote: >&

Re: [R] Printing left-justified character strings

2018-06-05 Thread zListserv
abc 19 a 20 ab 21 abc > On 2018-06-05, at 14:49, zListserv wrote: > > Duncan et al > > I tried to redefine print.data.frame the way you suggested, but I misplaced > the ellipsis by putting it at t

Re: [R] Printing left-justified character strings

2018-06-05 Thread zListserv
> On 05/06/2018 10:24 AM, zListserv wrote: >> Many (most?) R functions print character strings and factor labels >> right-justified. > > Could you be more specific? I see character strings left justified, e.g. x > <- rep(c("a", "ab", "abc&qu

[R] Printing left-justified character strings

2018-06-05 Thread zListserv
Many (most?) R functions print character strings and factor labels right-justified. print accepts right=FALSE to print character strings left-justified, but neither head nor tail seem to do so, and even print is a little inconsistent depending on whether it's done while knitting. Is there a wa

Re: [R] accessing variables inside a function, inside a loop

2011-03-01 Thread zListserv
Joshua Great solution. Taking off on your code, the following works but does not display the names of the variables in the formula. Any suggestions about how to modify the function so that it displays the correct formula (e.g., "glm(formula = y1 ~ x1 * x2, data = dat)" instead of "glm(formula