[R] How to have columns lined up?

David Winsemius dwinsemius at comcast.net
Wed Feb 8 07:46:53 CET 2012


On Feb 7, 2012, at 11:07 PM, hithit168 wrote:

> Hi there,
>
> Everytime when I paste My R output in WORD, the columns couldn't  
> line up
> nicely like they appear in  R console. Is there a way to fix this  
> problem?
> Thanks for any help!
>
Select the table, make it Courier. But the isn't really an R  
question ... is it?

>
> time n.risk n.event survival std.err lower 95% CI upper 95% CI
>    6     21       3    0.857  0.0764        0.707        1.000
>    7     17       1    0.807  0.0869        0.636        0.977
>   10     15       1    0.753  0.0963        0.564        0.942
>   13     12       1    0.690  0.1068        0.481        0.900
>   16     11       1    0.627  0.1141        0.404        0.851
>   22      7       1    0.538  0.1282        0.286        0.789
>   23      6       1    0.448  0.1346        0.184        0.712
>
> --


David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list