[R] Issue with results from 'summary' function in R

Thierry Onkelinx thierry.onkelinx at inbo.be
Fri Sep 18 16:51:16 CEST 2015


This is described in ?summary

> x <- 22072
> getOption("digits")
[1] 7
> summary(x)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
  22070   22070   22070   22070   22070   22070
> options(digits = 10)
> summary(x)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
  22072   22072   22072   22072   22072   22072
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature
and Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no
more than asking him to perform a post-mortem examination: he may be
able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey


2015-09-18 14:08 GMT+02:00 Praveen Surendran <ps629 op medschl.cam.ac.uk>:
> Hi all,
>
> Attached table (that contains summary for a genetic association study) was read using the command:
>
> test <- read.table('testDat.txt',header=FALSE,stringsAsFactors=FALSE)
>
> Results from the summary of the attached table is provided below:
>
>> summary(test$V5)
>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
>   22070   22070   22070   22070   22070   22070
>
> As we can see column 5 of this table contains only one value - 22072
> I am confused as to why I am getting a value 22070 in the summary of this column.
>
> I tested this using versions of R including - R version 3.2.1 (2015-06-18) -- "World-Famous Astronaut"
>
> Thank you for looking at this issue.
> Kind Regards,
>
> Praveen.
>
>
>
>
> ______________________________________________
> R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list