Skip to content

max/summary

3 messages · Mahbub Latif, Brian Ripley, Dirk Eddelbuettel

#
Hi,

What is the reason for getting two different max of a
vector from two functions max() and summary()? Here is
an example,
[1] 99992
Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
      6   24510   49950   50020   75040   99990 

Which value is the correct one? I had this problem
while I was working with microarry data. 

Thanks.

Mahbub
#
They are the same value.  Lokking at ?summary will show you that the number
of significant values are different in the two cases (7 and 4).

You need to distinguish between the value and how it is printed.
On Sat, 17 May 2003, Mahbub Latif wrote:

            

  
    
#
On Sat, May 17, 2003 at 11:47:18AM -0700, Mahbub Latif wrote:
They are both the same, summary uses a display with 4 significant digits:

edd at chibud:~> R --silent --no-save --no-restore
[1] 99992
Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
    6.0 24513.5 49954.5 50019.7 75038.8 99992.0
       
Hth, Dirk