Description Usage Arguments Details Value
View source: R/agent-array-to-df.R
Put agent_array into a matrix format
1 | agent_array_to_mat(agent_array)
|
agent_array |
n_sims x n_agents x time array |
loop through array and make into a long matrix. Only record when there is a change in state. Do not record -1. Made so to eventually replace with a Rcpp function
matrix with the following columns
simulation id
agent id
time
number between 0 and K-1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.