Re: [R] Issue with results from 'summary' function in R
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"wrote: >This is described in ?summary > >> x <- 22072 >> getOption("digits") >[1] 7 >> summary(x) > Min. 1st Qu. MedianMean 3rd Qu.Max. > 22070 22070 22070 22070 22070 22070 >> options(digits = 10) >> summary(x) > Min. 1st Qu. MedianMean 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 : >> 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. MedianMean 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@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. __ R-help@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.
[R] Issue with results from 'summary' function in R
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. MedianMean 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. 1 762320 C T 22072 0.0169445 0.0169445 748 1 0.00350047 21324 748 0 0.38843753.9888 0.000133264 0.994259 1 785989 T C 22072 0.7928370.79283722182 0.6337890.0166803 647 45028840-84.0255137.518 -0.00444316 0.54119 1 865545 G A 22072 0.00021447 0.00021447 6 0.6337441 13982 6 0 11.2623 4.91838 0.465569 0.0220305 1 865584 G A 22072 9.06125e-05 9.06125e-05 4 1 1 22068 4 0 0.82775 4.01634 0.0513144 0.836716 1 865628 G A 22072 0.00236503 0.00236503 58 0.451 12204 58 0 -0.662004 15.2589 -0.00284324 0.965395 1 865662 G A 22072 0.00493838 0.00493838 218 1 1 21854 218 0 -97.186229.5061 -0.11163 0.000988553 __ R-help@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.
Re: [R] Issue with results from 'summary' function in R
This is described in ?summary > x <- 22072 > getOption("digits") [1] 7 > summary(x) Min. 1st Qu. MedianMean 3rd Qu.Max. 22070 22070 22070 22070 22070 22070 > options(digits = 10) > summary(x) Min. 1st Qu. MedianMean 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: > 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. MedianMean 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@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. __ R-help@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.
Re: [R] Issue with results from 'summary' function in R
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. MedianMean 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. MedianMean 3rd Qu.Max. 22072 22072 22072 22072 22072 22072 __ R-help@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.