Description Usage Arguments Value See Also Examples
Generates a fairly flexible container to log stuff.
1 | init_logger(what, init.size, at = NULL, to = NULL)
|
what |
[ |
init.size |
[ |
at |
[ |
to |
[ |
[enviroment
] Logger environment.
update_logger
1 2 3 4 5 6 7 | log = init_logger(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 init_logger
update_logger(log, P = matrix(runif(10), ncol = 2L), C = "a", f = runif(10), iter = 1, div = letters[1:3])
update_logger(log, P = matrix(runif(10), ncol = 2L), C = "b", f = runif(10), iter = 2, div = letters[1:3])
update_logger(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.