A.Z.,

You could recreate the data (I assumed that the values are discrete integers 
and not a bin for a continuous variable) ...

value <- 1:6
count <- c(10,8,12,9,14,7)
d <- rep(value,count)
table(d)

... and then do what you want with the data in the d vector ...

summary(d)
hist(d)



> On 07-Jul-10 20:39:32, Andrei Zorine wrote:
> > Hello,
> > I just need a hint here:
> > Suppose I have no raw data, but only a frequency table I have, and I
> > want to run basic statistical procedures with it, like histogram,
> > descriptive statistics, etc. How do I do this with R?
> > For example, how do I plot a histogram for this table for a sample of
> > size 60?
> >
> > Value   Count
> > 1       10
> > 2       8
> > 3       12
> > 4       9
> > 5       14
> > 6       7
> >
> > Thanks,
> > A.Z.

______________________________________________
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