From Thom@@@SOEIRO @end|ng |rom @p-hm@|r  Wed May 13 22:27:15 2020
From: Thom@@@SOEIRO @end|ng |rom @p-hm@|r (SOEIRO Thomas)
Date: Wed, 13 May 2020 20:27:15 +0000
Subject: [Rd] justify hard coded in format.ftable
Message-ID: <f391e1ccd3a84fe1885c9e644371707e@SCWPR-EXDAG1-6A.aphm.ap-hm.fr>

Dear all,

I haven't received any feedback so far on my proposal to make "justify" argument available in stats:::format.ftable

Is this list the appropriate place for this kind of proposal?

I hope this follow-up to my message won't be taken as rude. Of course it's not meant to be, but I'm not used to the R mailing lists...

Thank you in advance for your comments,

Best,

Thomas

> Dear all,
>
> justify argument is hard coded in format.ftable:
>
> cbind(apply(LABS, 2L, format, justify = "left"),
>       apply(DATA, 2L, format, justify = "right"))
>
> It would be useful to have the possibility to modify the argument between c("left", "right", "centre", "none") as in format.default.
>
> The lines could be changed to:
>
> if(length(justify) != 2)
>   stop("justify must be length 2")
> cbind(apply(LABS, 2L, format, justify = justify[1]),
>       apply(DATA, 2L, format, justify = justify[2]))
>
> The argument justify could defaults to c("left", "right") for backward compatibility.
>
> It could then allow:
> ftab <- ftable(wool + tension ~ breaks, warpbreaks)
> format.ftable(ftab, justify = c("none", "none"))
>
> Best regards,
>
> Thomas



[Rd] justify hard coded in format.ftable
SOEIRO Thomas