I am programming a script that takes some data, creates in a loop a new object named "newrow" as character, and adds the new row in an existing data.frame
, using rbind()
while(i<=l) {
dir.process() #function that creates the object "newrow"
marks<<-rbind(marks,newrow)
}
The problem is that the loop works, but rbind()
replaces the same row with the new data. I have only one row in my data frame, every time with the last data
How I can add new rows to the dataframe
?
Thanks for all,
jfpalomeque.gonzalez