util_harmonize_block_types: Harmonize result column types across simulation blocks

View source: R/util_stuff.R

util_harmonize_block_typesR Documentation

Harmonize result column types across simulation blocks

Description

Makes columns that have different types in different blocks bindable

Usage

util_harmonize_block_types(results_list)

Arguments

results_list

list of result tibbles, one per simulation block

Details

A metric can come back as a number in one block and as a character in another, for example when a run reports a NetLogo error message. Binding the blocks then fails and the results of all completed runs are lost. Such columns are converted to character in every block instead, with a warning naming them. List columns (agent metrics) are left untouched.

Value

results_list with conflicting columns converted to character


nlrx documentation built on Nov. 25, 2026, 5:09 p.m.