uuid: Universally Unique Identifiers

Description Usage Arguments Details Value Author(s) Examples

View source: R/utils.R

Description

Generate a UUID.

Usage

1
2
3
4
5
uuid(uppercase = FALSE)

hex2raw(x)

raw2hex(x, uppercase = FALSE)

Arguments

x

A vector of to convert between raw bytes and hexadecimal strings.

uppercase

Should the result be in uppercase?

Details

uuid generates a random universally unique identifier.

hex2raw converts a hexadecimal string to a raw vector.

raw2hex converts a raw vector to a hexadecimal string.

Value

For uuid, a list of length 2:

For hex2raw, a raw vector.

For raw2hex, a character vector of length 1.

Author(s)

Kylie A. Bemis

Examples

1
2
3
4
id <- uuid()
id
hex2raw(id$string)
raw2hex(id$bytes)

matter documentation built on Nov. 8, 2020, 6:15 p.m.