You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@willpearse
After our conversation I worked on my plant.timestep function (line 66 in plants.R) but I'm not sure if I got closer or father away.
I am trying to take the char.matrix (which is now called plants) and loop through columns, and within each column loop through each row. Then I am trying to assign each cell of the terrain to plants, after applying the survive function to it. However, I don't have a terrain finished, so I don't know whether or not this is going to work.
I also still don't understand why on earth we would want the survive function to return a vector. What is the point of survive if we aren't adding any plants?
My plan is to Skype you tomorrow during office hours and try one more time to get this. If I don't I will just finishing debugging the package and be DONE with this!
The text was updated successfully, but these errors were encountered:
You're focusing on the sentences and not on the story. There is no way I can answer your question except for telling you the story again.
You are looping over timesteps
With each timestep, you are calling the function plant.timestep. plant.timestep loops across the rows and columns of a matrix, calling survive to replace each cell of that matrix with what will happen to its occupant in the next timestep.
The answer to your question is in this story. There is no answer to your question, because the phrase "aren't adding any plants" doesn't have meaning at the level of the survive function. It only has meaning at the level of the story, above.
@willpearse
After our conversation I worked on my plant.timestep function (line 66 in plants.R) but I'm not sure if I got closer or father away.
I am trying to take the char.matrix (which is now called plants) and loop through columns, and within each column loop through each row. Then I am trying to assign each cell of the terrain to plants, after applying the survive function to it. However, I don't have a terrain finished, so I don't know whether or not this is going to work.
I also still don't understand why on earth we would want the survive function to return a vector. What is the point of survive if we aren't adding any plants?
My plan is to Skype you tomorrow during office hours and try one more time to get this. If I don't I will just finishing debugging the package and be DONE with this!
The text was updated successfully, but these errors were encountered: