Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

random_id

Helper for creating a random id for a gt table


Description

This helper function 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

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

Value

A character vector containing a single, random ID.

Function ID

7-21

See Also


gt

Easily Create Presentation-Ready Display Tables

v0.2.2
MIT + file LICENSE
Authors
Richard Iannone [aut, cre] (<https://orcid.org/0000-0003-3925-190X>), Joe Cheng [aut], Barret Schloerke [aut] (<https://orcid.org/0000-0001-9986-114X>), RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.