irep | R Documentation |
Add a column containing a simulation counter (irep). A new simulation is counted everytime a value in x is lower than its previous value.
irep(x, quiet = FALSE)
x |
The column to be used for computing simulation number, usually the ID column. |
quiet |
Logical, if |
xpdb_ex_pk_2 <- xpdb_ex_pk %>%
mutate(sim_id = irep(ID), .problem = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.