uuid | R Documentation |
Generate a UUIDv4.
uuid(uppercase = FALSE)
hex2raw(x)
raw2hex(x, uppercase = FALSE)
x |
A vector to convert between |
uppercase |
Should the result be in uppercase? |
uuid
generates a random (version 4) universally unique identifier. A private RNG stream is used to avoid collisions due to set.seed
and to avoid altering the global .Random.seed
.
hex2raw
converts a hexadecimal string to a raw
vector.
raw2hex
converts a raw
vector to a hexadecimal string.
For uuid
, a list of length 2:
string
: A character vector giving the UUID.
bytes
: The raw
bytes of the UUID.
For hex2raw
, a raw
vector.
For raw2hex
, a character vector of length 1.
Kylie A. Bemis
id <- uuid()
id
hex2raw(id$string)
raw2hex(id$bytes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.