I donĀ“t know what you means by "treat", but may be you want something like
my.df<-read.table(stdin(), head=T, sep=",")
class,frequency
20-23,9
23-25,7
26-28,5
29-31,5
32-34,3

rownames(my.df)<-my.df$class
barplot (my.df$frequency)
axis(1, 1:dim(my.df)[1], rownames(my.df))

Cheers,
miltinho astronauta
brazil



On 7/23/08, Angelo Scozzarella <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> how can I treat data organised in classes and frequencies?
>
> Ex.
>
> class           frequency
>
> 20-23                   9
> 23-25                   7
> 26-28                   5
> 29-31                   5
> 32-34                   3
>
>
>
> Thanks
>
> Angelo Scozzarella
>
> ______________________________________________
> 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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to