AxisKeys.jl icon indicating copy to clipboard operation
AxisKeys.jl copied to clipboard

Add `skip_missing` keyword to `populate!`

Open rofinn opened this issue 4 years ago • 1 comments

In some cases you may want to fill a pre-allocated KeyedArray with table data and have it ignore key values that aren't in your pre-allocated array. This might be a nice way to gracefully avoid erroring here when the key indices aren't present?

rofinn avatar Apr 28 '21 18:04 rofinn

Sounds good. It already takes on keyword force=false to disable over-writing, so maybe skip=false is the default too (all the data must end up in the container) while true keeps a subset.

(I guess subset and intersect are other words which could make some sense, but perhaps avoiding the suggestion that ::Missing is involved is good.)

mcabbott avatar May 06 '21 15:05 mcabbott