Skip to content
Prev 180872 / 398503 Next

Using while statements to insert rows in a dataframe

Eric McKibben wrote:
Hi Eric,

Using a /while/ statement would probably work, but it would imply not 
making use of R's convenient indexing aspect. What I suggest is the 
following (my.data is the data.frame you provided) :
This should do the trick.

Cheers,