Description Usage Arguments Value See Also Examples
View source: R/bookkeeping_logger.R
Generates a fairly flexible container to log stuff.
1 |
what |
[ |
init.size |
[ |
at |
[ |
to |
[ |
Logger environment.
log_update
1 2 3 4 5 6 7 8 9 10 11 | log = log_init(c("P" = "list", "f" = "list", "C" = "character"),
init.size = 5L, at = c(1, 3))
# Note that div is not subject to logging since it was not specified in log_init
log_update(log, P = matrix(runif(10), ncol = 2L), C = "a",
f = runif(10), iter = 1, div = letters[1:3])
log_update(log, P = matrix(runif(10), ncol = 2L), C = "b",
f = runif(10), iter = 2, div = letters[1:3])
log_update(log, P = matrix(runif(10), ncol = 2L), C = "a",
f = runif(10), iter = 3, div = letters[1:3])
print(log$df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.