Dear Jim and R helpers,
I cannot recall an object labelled for an xtab function (prettyR package) in
R 2.10.1, but it works well in previous version, say 2.8.1 (I am using PC,
Window XP service pack 3)
Could you please check this problem?
Many thanks 
Nguyen D Nguyen
Garvan Institute, Sydney

For example:

With R 2.8.1
I named an object of re

> re    <- xtab(risk0gr ~risk1gr + fx, tmp[tmp$fx==1,])

Count for fx = 1 is 126 ( 100 %)

Crosstabulation of risk0gr by risk1gr 
         risk1gr 
risk0gr   1. <=10 2. 11-20   3. >20 
1. <=10         2        1        0        3 
            66.67    33.33        0    2.381 
            66.67    5.556        0 

2. 11-20        1        8        1       10 
               10       80       10    7.937 
            33.33    44.44   0.9524 

3. >20          0        9      104      113 
                0    7.965    92.04    89.68 
                0       50    99.05 

                3       18      105      126 
            2.381    14.29    83.33

When I recalled
> re

Crosstabulation of risk0gr by risk1gr 
         risk1gr 
risk0gr   1. <=10 2. 11-20   3. >20 
1. <=10         2        1        0        3 
            66.67    33.33        0    2.381 
            66.67    5.556        0 

2. 11-20        1        8        1       10 
               10       80       10    7.937 
            33.33    44.44   0.9524 

3. >20          0        9      104      113 
                0    7.965    92.04    89.68 
                0       50    99.05 

                3       18      105      126 
            2.381    14.29    83.33

So it works well

But with R 2.10.1

When I recalled re, the result was NULL

> re
NULL

______________________________________________
R-help@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.

Reply via email to