Description Usage Arguments Details Value
Translate wide output format (e.g. from ode) into long format
1 |
out |
data.frame or matrix or list of matrices in wide format |
keep |
Index vector, the columns to keep |
na.rm |
Logical, if |
The function assumes that out[,1] represents a time-like vector whereas out[,-1] represents the values. Useful for plotting with ggplot. If a list is supplied, the names of the list are added as extra column names "condition"
data.frame in long format, i.e. columns "time" (out[,1]), "name" (colnames(out[,-1])), "value" (out[,-1]) and, if out was a list, "condition" (names(out))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.