I want to transform the data by "tapply" to one dataframe. But I can not get
it.
For example:
> tst=tapply(point,pp,length)
> tst[1:10]
  p1   p10 p100 p1000 p1001 p1002 p1003 p1004 p1005 p1006
  1   5   1   8   6   5   8   7   4   4
> res=as.data.frame(tst)  # I try to transform it
> res[1:10,]
  p1   p10 p100 p1000 p1001 p1002 p1003 p1004 p1005 p1006
  1   5   1   8   6   5   8   7   4   4
How to transfrom it like the following:
>res
point ind
1   p1   1
2   p10   5
3 p100   1
4 p1000   8
5 p1001   6

Thanks!

	[[alternative HTML version deleted]]

