Hi Jorge!
2011/8/25 Jorge I Velez :
> Try ("x" is your data):
> x[rep(1:nrow(x), each = 6),]
Yes, it works. Thanks! I see that the row names are now: 1, 1.1,
1.2, 1.3, 1.4, 1.5, 2, 2.1 .
It does not bother me, but is this going to be a problem later on? I
need to further manipulate the
Hi Henri-Paul,
Try ("x" is your data):
x[rep(1:nrow(x), each = 6),]
HTH,
Jorge
On Thu, Aug 25, 2011 at 3:22 PM, Henri-Paul Indiogine <> wrote:
> Greetings!
>
> I am just now learning to use R for my dissertation project. I need
> to manipulate a lot of text and numeric data. I created a da
Greetings!
I am just now learning to use R for my dissertation project. I need
to manipulate a lot of text and numeric data. I created a data frame
that has 7 columns and 127 unique rows. Now I need to replicate each
line 6 times and then later change values in the first 2 columns.
I am tryin
3 matches
Mail list logo