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

Praveen Surendran ps629 at medschl.cam.ac.uk
Sat Sep 19 02:47:42 CEST 2015


Hi Thierry,

Thank you for the response. I should have looked at the help page.

Kind Regards,
Praveen.

On 18/09/2015 15:51, "Thierry Onkelinx" <thierry.onkelinx at inbo.be> wrote:

>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 at 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 at 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