>> 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
>> 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. College Ave
> Greencastle IN 46135 USA
>
> On Feb 22, 2011,
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
3 matches
Mail list logo