Is this what you want:
> x
FL number
1 34 4
2 35 3
3 36 7> cbind(rep(x$FL, x$number), 1)
[,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:> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?