I would like to prepare the data for barplot. But I only have the data frame
now.

x1=rnorm(10,mean=2)
x2=rnorm(20,mean=-1)
x3=rnorm(15,mean=3)
data=data.frame(x1,x2,x3)

If there a way to put data within a specific range? The expected result is
as follows:
 range       x1                  x2                    x3
-10-0        2                      5                     1  (# points in
this range)
0-10         7                     9                      6
...

I know the table function but I do not know how to deal with the range
issue.

Thanks in advance.

Yi

	[[alternative HTML version deleted]]

