QQIDexample: QQIDexample

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/QQIDexample.R

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

1
QQIDexample(sel = 1:5)

Arguments

sel

(numeric, or logical) a subsetting vector

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").

Value

(character) a vector of QQIDs

Author(s)

(c) 2019 Boris Steipe, licensed under MIT (see file LICENSE in this package).

See Also

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

Examples

1
2
3
4
5
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

qqid documentation built on May 2, 2019, 12:19 p.m.