[R-SIG-Finance] format.data.frame

Brian G. Peterson brian at braverock.com
Mon Dec 22 18:39:34 CET 2008


Try r-help.  Your question has nothing to do with finance, even if your
data does.


On Mon, December 22, 2008 10:37 am, arnaud Gaboury wrote:
> Hi everybody
>
> Here is the output :
>
>> res2
>        cvar standardDev vol10j vol200j sharpe
> Dow    8.56        2.56  33.44   43.88  -0.04
> Schatz 0.44        0.15   3.00    2.50  -0.72
> Bobl   0.88        0.32   5.45    5.44  -0.33
> Bunds  1.33        0.46   8.06    7.69  -0.23
> US2Y   0.74        0.21   1.99    3.45  -0.52
> US5Y   1.48        0.45   5.59    7.42  -0.24
> US10Y  2.12        0.63   9.60   10.43  -0.17
>> str(res2)
> 'data.frame':   7 obs. of  5 variables:
>  $ cvar       : num  8.56 0.44 0.88 1.33 0.74 1.48 2.12
>  $ standardDev: num  2.56 0.15 0.32 0.46 0.21 0.45 0.63
>  $ vol10j     : num  33.44  3.00  5.45  8.06  1.99 ...
>  $ vol200j    : num  43.88  2.50  5.44  7.69  3.45 ...
>  $ sharpe     : num  -0.04 -0.72 -0.33 -0.23 -0.52 -0.24 -0.17
>
>
>
> How can I center my results? I tried this:
>> format.data.frame(res2,justify="centre")
> But it’s going nowhere.
>
> Tanks for any help,
>
> Arno
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>


-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list