## create a vector of capture counts
counts <- c(1,1,1,2,2,2,3,3,4)
## make into a table of classes
class.data <- buildClassTable(counts)
## convert to table of individuals
data <- classToInd(class.data)
data
Run the code above in your browser using DataLab