Re: [R] replicate lines of data frame

2011-08-25 Thread Henri-Paul Indiogine
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

Re: [R] replicate lines of data frame

2011-08-25 Thread Jorge I Velez
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

[R] replicate lines of data frame

2011-08-25 Thread Henri-Paul Indiogine
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