Re: [R] Using while statements to insert rows in a dataframe

2009-05-19 Thread Luc Villandre
Eric McKibben wrote: Hi. I am very new to R and have been diligently working my way through the manual and various tutorials. I am now trying to work with some of my own data and have encountered a problem that I need to fix. I have a dataframe with 8 columns and approximately 850 rows. I h

Re: [R] Using while statements to insert rows in a dataframe

2009-05-19 Thread Dieter Menne
Eric McKibben wrote: > > Within column 6 (Question) the numbers 1:33 repeat down the entire column. > Occasionally, however, another value (-32767) appears. I need to locate > this value everytime it appears and in its place insert 33 rows that are > numbered 1:33 in column Question. > Addi

[R] Using while statements to insert rows in a dataframe

2009-05-19 Thread Eric McKibben
Hi. I am very new to R and have been diligently working my way through the manual and various tutorials. I am now trying to work with some of my own data and have encountered a problem that I need to fix. I have a dataframe with 8 columns and approximately 850 rows. I have provided an excerpt