Message-ID: <0A0B84ACB5CD46ACB2364D7F0B4F88D0@DDNCDZ1S>
Date: 2010-01-07T01:26:26Z
From: Nguyen Dinh Nguyen
Subject: prettyR: object with xtab doesn't work in R 2.10.1
In-Reply-To: <mailman.29.1262775607.17693.r-help@r-project.org>
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