getuuid {Ruuid} | R Documentation |
These functions allow a user to retrieve and transform universally unique ID values. A user can get a new UUID, as well as transform a string representation into a byte representation and vice versa.
getuuid(cur)
cur |
If provided, either a UUID string or a uuidt object |
This package uses Theodore Ts'o's libuuid to generate universally
unique ID values. A unique ID value is represented in R by the class
uuidt
, which wraps the byte values. A wrapper object is the
most common method of handling these values, Ruuid
- which also
provides for a string representation of the UUID.
If no parameter cur
is passed into getuuid
, a new
Ruuid
is generated. If either a string or a uuidt
object is passed in, then the complementary piece is generated and the
resultant Ruuid
is generated.
getuuid: Returns an object of class Ruuid
.
R. Gentleman and Jeff Gentry
Theodore Ts'o's Universally Unique ID library
http://web.mit.edu/tytso/www/home.html
z <- getuuid() z a <- getuuid(as.character(z)) a q <- getuuid(uuid(z)) q w <- getuuid() w