Skip to content

Commit c83f126

Browse files
committed
Update dataset and example for run_rabimo()
1 parent ad37d3f commit c83f126

3 files changed

Lines changed: 34 additions & 4 deletions

File tree

R/run_rabimo.R

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,25 @@
1212
#' @return data frame with columns as returned by Abimo
1313
#' @export
1414
#' @examples
15+
#' # Get input data and config for Berlin (version 2020)
1516
#' inputs_2020 <- kwb.rabimo::rabimo_inputs_2020
17+
#'
18+
#' # Randomly select 1000 blocks (to reduce runtime)
19+
#' data <- inputs_2020$data
20+
#' data <- data[sample(seq_len(nrow(data)), size = 1000L), ]
21+
#'
22+
#' # Run R-Abimo
23+
#' results_2020 <- kwb.rabimo::run_rabimo(data, inputs_2020$config)
24+
#'
25+
#' # Get input data and config for Berlin (version 2025)
1626
#' inputs_2025 <- kwb.rabimo::rabimo_inputs_2025
17-
#' results_2020 <- kwb.rabimo::run_rabimo(inputs_2020$data, inputs_2020$config)
18-
#' results_2025 <- kwb.rabimo::run_rabimo(inputs_2025$data, inputs_2025$config)
27+
#'
28+
#' # Randomly select 1000 blocks (to reduce runtime)
29+
#' data <- inputs_2025$data
30+
#' data <- data[sample(seq_len(nrow(data)), size = 1000L), ]
31+
#'
32+
#' # Run R-Abimo
33+
#' results_2025 <- kwb.rabimo::run_rabimo(data, inputs_2025$config)
1934
run_rabimo <- function(data, config, controls = define_controls())
2035
{
2136
# Provide functions and variables for debugging

data/rabimo_inputs_2025.rda

-13.4 KB
Binary file not shown.

man/run_rabimo.Rd

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)