From f8c8042f0b248766fdd620c36b72d1f967f5ad77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20L=C3=B6ffler?= Date: Tue, 12 Nov 2024 14:32:20 +0100 Subject: [PATCH] Add range information to splits in 'split.network.time.based.by.ranges' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change makes splitting by ranges more consistent with time-based splitting. This works towards #273. Signed-off-by: Maximilian Löffler --- util-split.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util-split.R b/util-split.R index 01eda629..82728411 100644 --- a/util-split.R +++ b/util-split.R @@ -834,6 +834,9 @@ split.network.time.based.by.ranges = function(network, ranges, remove.isolates = } ) + # add range information + names(nets.split) = sapply(ranges.bounds, paste, collapse = "-") + ## convert ranges to bins bins = get.bin.dates.from.ranges(ranges.bounds) attr(nets.split, "bins") = bins