This helper function is to be used with id argument of the gt() function. The id option in gt() uses random_id() by default however we can optionally supply a custom id value, or, use NULL for no ID at all.

random_id(n = 10)

Arguments

n

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

Value

A character vector containing a single, random ID.

Function ID

7-19

See also