merge_dim_labels: Merge two ordered sets of dimension labels

View source: R/sizeIntegral.R

merge_dim_labelsR Documentation

Merge two ordered sets of dimension labels

Description

Internal helper for sizeIntegral(). Interleaves the labels of two arrays into the labels of the array holding their product, keeping the relative order of the labels within each of the two inputs. Labels that occur in both inputs occur once in the result, which is how a weighting array with a "time" dimension is lined up with the times of the abundance rather than multiplied out against them.

Usage

merge_dim_labels(a, b)

Arguments

a, b

Character vectors of dimension labels.

Value

A character vector of labels containing each label of a and b once.


mizer documentation built on Aug. 24, 2026, 9:08 a.m.