I want to take data from one set and enter it into another empty set.
So, for example, I want to do something like:
if ([i,x] > 9){
new_data$House[y,x] <- data[i,2]
}
but I want to do it over and over, creating new rows in new_data
.
How do I keep adding data to new_data
and overriding/saving the new row?
Essentially, I just want to know how to "grow" an empty data set. Please ignore any errors in the code, it is just an example and I am still working on other details.
Thanks