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

Keith Jewell Keith.Jewell at campdenbri.co.uk
Fri Sep 18 16:56:16 CEST 2015


On 18/09/2015 13:08, Praveen Surendran wrote:
> 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.

 > summary(22072, digits=5)
    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
   22072   22072   22072   22072   22072   22072



More information about the R-help mailing list