random_id: Helper for creating a random 'id' for a *gt* table

View source: R/helpers.R

random_idR Documentation

Helper for creating a random id for a gt table


The random_id() helper function can be used to create a random, character-based ID value argument of variable length (the default is 10 letters).


random_id(n = 10)



Number of letters

⁠scalar<numeric|integer>⁠ // default: 10

The n argument defines the number of lowercase letters to use for the random ID.


A character vector containing a single, random ID.

Function ID


Function Introduced

v0.2.0.5 (March 31, 2020)

See Also

Other helper functions: adjust_luminance(), cell_borders(), cell_fill(), cell_text(), cells_body(), cells_column_labels(), cells_column_spanners(), cells_footnotes(), cells_grand_summary(), cells_row_groups(), cells_source_notes(), cells_stub_grand_summary(), cells_stub_summary(), cells_stubhead(), cells_stub(), cells_summary(), cells_title(), currency(), default_fonts(), define_units(), escape_latex(), from_column(), google_font(), gt_latex_dependencies(), html(), md(), nanoplot_options(), pct(), px(), stub(), system_fonts()

gt documentation built on June 22, 2024, 11:11 a.m.