boxplot()'s return value names
Martin Maechler
Martin Maechler <maechler@stat.math.ethz.ch>
Mon, 27 Sep 1999 09:52:15 +0200
Something worth discussing,
I think these output names NEED a change :
> boxplot(rt(250,df=3), plot=F)
$"1"
$"1"$stats
[1] -2.7995357 -0.7170382 0.1109581 0.8426811 3.0483316
$"1"$n
[1] 250
$"1"$conf
[1] -0.04490152 0.26681765
$"1"$out
[1] 5.784389 4.766206 -3.932449 -3.460407 -3.695599 5.486126 -3.141079
[8] 4.484507 12.731848 3.867611 4.040786 4.137455 3.772149 7.693779
[15] -3.431560 3.860079 -4.087880 3.766799 4.497379 -3.543726 -6.196635
[22] -6.322201
- "1" should rather be 1
and
str(boxplot(data.frame(x=1:10,y=rt(10,df=4)),plot=F))
List of 2
$ x:List of 4
..$ stats: num [1:5] 1 3 5.5 8 10
..$ n : int 10
..$ conf : num [1:2] 3 8
..$ out : int(0)
$ y:List of 4
..$ stats: num [1:5] -1.4097 0.0251 0.4533 1.0871 1.4427
..$ n : int 10
..$ conf : num [1:2] -0.0774 0.9840
..$ out : num(0)
- attr(*, "row.names")= chr [1:10] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10"
where the `trailing' "row.names" attribute seems *very* unnecessary.
{I'm in a hurry..}
--
Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._