April 28, 2020
Rmd
, to include English textThe homework assignment asked for Rmd
format
But 40% of answers were in R
format
Makrdown rules are important
The file should produce a correct output
-This system have two parts(elements)(values in the circle) which are {food and cells} -The system have one processes (box) which is {eating}
-This system have two parts(elements)(values in the circle) which are {food and cells} -The system have one processes (box) which is {eating}
There should be a space after -
. Use a single *
to wrap keywords
- This system has two parts(elements) (values in the circle), which are *food* and *cells* - The system has one processes (box) which is *eating*
Check your English grammar: “The system has parts…” because system is singular.
system's parts; food, cells process rates; ncells[i-1]*food[i-1]/food[1] initial values : ncell[1], food[1] when food is finish cells will stop replicating and start dying.
system’s parts; food, cells process rates; ncells[i-1]*food[i-1]/food[1] initial values : ncell[1], food[1] when food is finish cells will stop replicating and start dying.
+ system's parts: food, cells + process rates: `ncells[i-1]*food[i-1]/food[1]` + initial values: `ncell[1], food[1]` + when food is finish cells will stop replicating and start dying.
ncells[i-1]*food[i-1]/food[1]
ncell[1]
, food[1]
system's parts: food, cells process rates: `ncells[i-1]*food[i-1]/food[1]` initial values: `ncell[1], food[1]` when food is finish cells will stop replicating and start dying.
system’s parts: food, cells
process rates: ncells[i-1]*food[i-1]/food[1]
initial values: ncell[1], food[1]
when food is finish cells will stop replicating and start dying.
+
-
and *
at the line start+
is more positive`
to mark `variables`
*
to wrap keywords:
to start a description, no ;
.
and commas ,
.
and commas ,
… one item( circle )…
… one item (circle) …
I’m not testing your memory
Do not tell me
“A system is a group of interacting parts. The behavior of the system depends on the parts and interaction.”
Just tell me what do you think will be the behavior
May people said something like “when food is finish cells will stop replicating and start dying”
But there is no dying process in the figure
Therefore, in that model, cells never die
You are confusing your mental model with the exercise model
You are right. But this is a model, not reality
It means that the model is incomplete, and you should complete it
ncells[i-1]*food[i-1]/food[1]
”eating_rate
system_name <- function(N, rates, initial_cond) { state <- d_state <- rep(NA, N) state[1] <- initial_cond d_state[1] <- 0 for(i in 2:N) { d_state[i] <- some formula state[i] <- state[i-1] + d_state[i] } return(data.frame(state, d_state)) }