Learn R Programming

qqid (version 1.0.3)

QQIDexample: QQIDexample

Description

QQIDexample returns synthetic, valid QQIDs for testing and development. The synthetic examples are easy to distinguish from "real" IDs to prevent their accidental use in an application.

Usage

QQIDexample(sel = 1:5)

Arguments

sel

(numeric, or logical) a subsetting vector

Value

(character) a vector of QQIDs

Details

The function stores five artificial QQIDs. Input is an index vector that specifies which QQIDs to return. More than five IDs can be requested by applying the usual subsetting rules. The QQIDs represent the exact same numbers provided by xltIDexample(). However the qqid package provides only format conversion to UUID at this time, so the reverse comparison will only succeed with xltIDexample("UUID").

See Also

xltIDexample() Returns five 128-bit "hexlets", formatted as Md5, hex-number, UUID, and IPv6.

Examples

Run this code
# NOT RUN {
QQIDexample()                                  # the five stored QQIDs
QQIDexample(2:3)                               # two QQIDS
QQIDexample(c(TRUE, FALSE))                    # vector recycling
QQIDexample(sample(1:5, 17, replace = TRUE))   # seventeen in random order
QQIDexample() == xlt2qq(xltIDexample())        # TRUE TRUE TRUE TRUE TRUE

# }

Run the code above in your browser using DataLab