update_items: Apply updates to current collection of items

View source: R/datasets.R

update_itemsR Documentation

Apply updates to current collection of items

Description

This is essentially an internal transaction helper for trying to apply a changeset to a collection, used in several higher-level collection utils. Given the changeset that can represent updates of both types "replace" or "add", this applies an update join keyed on entityId for the replace and appends the new items to get the updated collection.

Usage

update_items(current_coll, update_coll)

Arguments

current_items

List of lists representing a collection of items.

update_items

Collection of items to apply as updates to current_items.


nf-osi/nfportalutils documentation built on Feb. 26, 2024, 1:05 p.m.