Re: [R] rep for multiple categories

2011-03-28 Thread Steven McKinney
om: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of BORGMANN,Kathi [kborgm...@audubon.org] Sent: March 28, 2011 11:43 AM To: r-help@r-project.org Subject: [R] rep for multiple categories Hi, I am R beginner and am trying to figure out how to generate a complete list of species f

Re: [R] rep for multiple categories

2011-03-28 Thread Henrique Dallazuanna
Try this: as.data.frame.table(xtabs(Number ~ SPP + Point + Visit, template)) On Mon, Mar 28, 2011 at 3:43 PM, BORGMANN,Kathi wrote: > Hi, > I am R beginner and am trying to figure out how to generate a complete list > of species for every point, visit, and year. The code below is close but does

[R] rep for multiple categories

2011-03-28 Thread BORGMANN,Kathi
Hi, I am R beginner and am trying to figure out how to generate a complete list of species for every point, visit, and year. The code below is close but does not give me a list of species for every point, visit, and year in my data set. spplist<-unique(sumPtCt$Species) spplength<-length(spplist)