Skip to content

function question

2 messages · Felipe Carrillo, jim holtman

#
Hi everyone:
I did this before with R and I can't remember how.
I got some fish forklength values
FL  number
34    4
35    3
36    7

I need to breakdown the FL by the number of fish with the same length
like this:
34  1
34  1
34  1
34  1
35  1
35  1
35  1
36  1
36  1
36  1
36  1
36  1
36  1
36  1



Felipe D. Carrillo  
Supervisory Fishery Biologist  
Department of the Interior  
US Fish & Wildlife Service  
California, USA
#
Is this what you want:
FL number
1 34      4
2 35      3
3 36      7
[,1] [,2]
 [1,]   34    1
 [2,]   34    1
 [3,]   34    1
 [4,]   34    1
 [5,]   35    1
 [6,]   35    1
 [7,]   35    1
 [8,]   36    1
 [9,]   36    1
[10,]   36    1
[11,]   36    1
[12,]   36    1
[13,]   36    1
[14,]   36    1


On Wed, Feb 11, 2009 at 5:14 PM, Felipe Carrillo
<mazatlanmexico at yahoo.com> wrote: