Re: [R] Expanding data ...

2008-11-16 Thread Philipp Pagel
On Sun, Nov 16, 2008 at 07:31:04AM -0500, John Poulsen wrote: > I have a dataset that has counts, but I need to expand the dataset so > that each of the counts has its own line in the dataset (row) and is > given and id. It looks something like: > > Site TypeCnt > 1 "A" 3 > 1

[R] Expanding data ...

2008-11-16 Thread John Poulsen
Hello, I have a dataset that has counts, but I need to expand the dataset so that each of the counts has its own line in the dataset (row) and is given and id. It looks something like: SiteTypeCnt 1 "A" 3 1 "B" 0 2 "C" 2 I want the dataset to look like: Site