Skip to contents

Generate a new unique identifier.

Usage

new_id()

Value

"Id" object.

Details

Identifiers are made using the uuid::UUIDgenerate().

Examples

# create new id
i <- new_id()

# print id
print(i)
#> id: 7c3e5619-36a9-4310-8a3f-a303c6d24443

# convert to character
as.character(i)
#> [1] "7c3e5619-36a9-4310-8a3f-a303c6d24443"

# check if it is an Id object
is.Id(i)
#> [1] TRUE