I have an external data (.txt) for annual peak flood. The first column is the year, second column is the observation date, and the last is the observed discharge. My task is to calculate the mean, skewness and kurtosis of the said data. I was advised to use read.table() to read the entire data. Please help me on how to perform the required computation. I am obviously a new user of this statistical software. Thank you so much for helping. Christabel Jane P. Rubio M.S. Student Water Resources Engineering Dept. of Construction & Environmental Engineering Kongju National University (Cheonan Campus) 102th Office,The 5th Engineering Building, 275, Budae-dong, Cheonan-si, Chungnam-do, 330-717, Korea TEL : +82-41-521-9316 FAX : +82-41-568-0287
[This email is either empty or too large to be displayed at this time]
christabel_jane prudencio wrote:> > > I have an external data (.txt) for > annual peak flood. The first column is the year, second column is the > observation date, and the last is the observed discharge. My task is to > calculate the mean, skewness and kurtosis of the said data. I was advised to use > read.table() to read the entire data. Please help me on how to perform the > required computation. I am obviously a new user of this statistical software. > Thank you so much for helping.Then please read the posting guide of this list and learn that we will not solve your homeworks. Uwe Ligges> > Christabel Jane P. Rubio > M.S. Student > Water Resources Engineering > Dept. of Construction & Environmental Engineering > Kongju National University (Cheonan Campus) > 102th Office,The 5th Engineering Building, > 275, Budae-dong, Cheonan-si, Chungnam-do, 330-717, Korea > TEL : +82-41-521-9316 > FAX : +82-41-568-0287 > > ______________________________________________ > R-help at r-project.org mailing list > 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.
?mean kurtosis http://finzi.psych.upenn.edu/R/Rhelp02a/archive/110186.html --- On Thu, 11/6/08, christabel_jane prudencio <tekiss_cjaye at yahoo.com> wrote:> From: christabel_jane prudencio <tekiss_cjaye at yahoo.com> > Subject: [R] mean computation for external data > To: r-help at r-project.org > Received: Thursday, November 6, 2008, 6:07 AM > I have an external data (.txt) for > annual peak flood. The first column is the year, second > column is the > observation date, and the last is the observed discharge. > My task is to > calculate the mean, skewness and kurtosis of the said data. > I was advised to use > read.table() to read the entire data. Please help me on how > to perform the > required computation. I am obviously a new user of this > statistical software. > Thank you so much for helping. > > Christabel Jane P. Rubio > M.S. Student > Water Resources Engineering > Dept. of Construction & Environmental Engineering > Kongju National University (Cheonan Campus) > 102th Office,The 5th Engineering Building, > 275, Budae-dong, Cheonan-si, Chungnam-do, 330-717, Korea > TEL : +82-41-521-9316 > FAX : +82-41-568-0287 > > ______________________________________________ > R-help at r-project.org mailing list > 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.__________________________________________________________________ [[elided Yahoo spam]]
Hi Christabel, Take a look at the function basicStats in the fBasics package. Here is an example: library(fBasics) set.seed(123) x=rnorm(20,24,2) basicStats(x) #x #nobs 20.000000 #NAs 0.000000 #Minimum 20.066766 #Maximum 27.573826 #1. Quartile 23.012892 #3. Quartile 25.097454 #Mean 24.283248 #Median 24.239970 #Sum 485.664952 #SE Mean 0.434989 #LCL Mean 23.372805 #UCL Mean 25.193690 #Variance 3.784311 #Stdev 1.945331 #Skewness -0.062495 #Kurtosis -0.547891 HTH, Jorge On Thu, Nov 6, 2008 at 6:07 AM, christabel_jane prudencio < tekiss_cjaye@yahoo.com> wrote:> > > > I have an external data (.txt) for > annual peak flood. The first column is the year, second column is the > observation date, and the last is the observed discharge. My task is to > calculate the mean, skewness and kurtosis of the said data. I was advised > to use > read.table() to read the entire data. Please help me on how to perform the > required computation. I am obviously a new user of this statistical > software. > Thank you so much for helping. > > Christabel Jane P. Rubio > M.S. Student > Water Resources Engineering > Dept. of Construction & Environmental Engineering > Kongju National University (Cheonan Campus) > 102th Office,The 5th Engineering Building, > 275, Budae-dong, Cheonan-si, Chungnam-do, 330-717, Korea > TEL : +82-41-521-9316 > FAX : +82-41-568-0287 > > ______________________________________________ > R-help@r-project.org mailing list > 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. >[[alternative HTML version deleted]]