mirror of
https://github.com/logos-storage/logos-storage-research.git
synced 2026-01-07 16:03:06 +00:00
17 lines
329 B
R
17 lines
329 B
R
|
|
Stats <- R6Class(
|
||
|
|
'Stats',
|
||
|
|
public = list(
|
||
|
|
stats = NULL,
|
||
|
|
|
||
|
|
initialize = function() {
|
||
|
|
self$stats = list(list())
|
||
|
|
},
|
||
|
|
|
||
|
|
add_stat = function(...) {
|
||
|
|
self$stats <- c(self$stats, list(rlang::dots_list(...)))
|
||
|
|
self
|
||
|
|
},
|
||
|
|
|
||
|
|
as_tibble = function() purrr::map_df(self$stats, as_tibble)
|
||
|
|
)
|
||
|
|
)
|