key: Key derivation helper function

View source: R/render-index.R

keyR Documentation

Key derivation helper function

Description

This function should generate a string that uniquely identifies a piece of data present in a table. In a report with multiple tables the id is used to preserve uniqueness.

Usage

key(x, id)

Arguments

x

cell object to derive key for

id

the unique id of the table being keyed

Details

This function relies on the object being keyed having at a minimum character attributes for row and col. Additional specifies for embedded tables are given with subrow and subcol. The row and col are automatically appended when using a table_builder. However the subrow and subcol must be added by the user to a cell of a table.


spgarbet/tangram documentation built on Feb. 12, 2023, 7:13 p.m.