Re: [R] question regarding basic stat question

2011-02-22 Thread Daniel Harris
>> The first column gives the answer that I am looking for but I just >> thought their maybe a better way without using the long variable > > Sounds like you want the frequency-weighted summary statistics. > For the mean, look at ?weighted.mean. > For more comprehensive stats, check ?wtd.mean in th

Re: [R] question regarding basic stat question

2011-02-22 Thread Peter Ehlers
On 2011-02-22 08:10, Daniel Harris wrote: Thanks for the replies The file is below Height Frequency 62 3 63 20 64 24 65 40 66 85 67 122 68 139 69 179 70 139 71 107 72 55 73 47 74 22 75 12 76 5 77 1 I use the follo

Re: [R] question regarding basic stat question

2011-02-22 Thread Daniel Harris
Thanks for the replies The file is below Height Frequency 62 3 63 20 64 24 65 40 66 85 67 122 68 139 69 179 70 139 71 107 72 55 73 47 74 22 75 12 76 5 77 1 I use the following data <- read.table("file",header=T) at

Re: [R] question regarding basic stat question

2011-02-22 Thread Bryan Hanson
Daniel, how is the data stored? The answer to your question may be as simple as > df <- read.csv("filename.csv") > summary(df) See ?read.csv for info on reading various file formats. HTH, Bryan Prof. Bryan Hanson Dept of Chemistry & Biochemistry DePauw University 602 S. Coll

Re: [R] question regarding basic stat question

2011-02-22 Thread Uwe Ligges
What about using read.table() and applying summary() on the result? Uwe Ligges On 22.02.2011 13:20, Daniel Harris wrote: Hello Is it possible to get summary statistics (inc mean, sd etc) from a text file that has the following info stored in it? Height Frequency 123

[R] question regarding basic stat question

2011-02-22 Thread Daniel Harris
Hello Is it possible to get summary statistics (inc mean, sd etc) from a text file that has the following info stored in it? Height Frequency 123 5 124 8 125 3 126 9 127 7 etc etc