[R] question regarding basic stat question

Daniel Harris mail.dharris at googlemail.com
Tue Feb 22 13:20:31 CET 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

Now I know I can convert the file to a single list outside of R using
python etc and I can convert the file to a single list inside R using
a series of (what I find) complicated commands.

Is there a simple way of doing summary(Height,Frequency)

Thanks in advance
Dan



More information about the R-help mailing list