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

Description

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

Usage

random_id(n = 10)

Arguments

n

Number of letters

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

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

Value

A character vector containing a single, random ID.

Function ID

8-28

Function Introduced

v0.2.0.5 (March 31, 2020)

See Also

Other helper functions: adjust_luminance(), cell_borders(), cell_fill(), cell_text(), currency(), default_fonts(), escape_latex(), from_column(), google_font(), gt_latex_dependencies(), html(), md(), nanoplot_options(), pct(), px(), row_group(), stub(), system_fonts(), unit_conversion()


gt documentation built on Sept. 11, 2024, 5:15 p.m.