/usr/share/doc/r-cran-misctools/tests/colMediansTest.Rout.save is in r-cran-misctools 0.6-22-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | R version 2.14.1 (2011-12-22)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i686-pc-linux-gnu (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library( "miscTools" )
>
>
> ## matrix
> m <- matrix( 1:24, nrow = 6, ncol = 4 )
>
> cm1 <- colMedians( m )
> print( cm1 )
[1] 3.5 9.5 15.5 21.5
>
> rm1 <- rowMedians( m )
> print( rm1 )
[1] 10 11 12 13 14 15
>
> all.equal( cm1, rowMedians( t( m ) ) )
[1] TRUE
> all.equal( rm1, colMedians( t( m ) ) )
[1] TRUE
>
>
|