Learn R Programming

qrcode (version 0.2.2)

qr_version: Determine the required version Returns a list with the version, error correction level and mode. The bit string encodes mode and the length of the input string.

Description

Determine the required version Returns a list with the version, error correction level and mode. The bit string encodes mode and the length of the input string.

Usage

qr_version(x, ecl = c("L", "M", "Q", "H"))

Arguments

x

the input string

ecl

the required error correction level. Available options are "L" (7%), "M" (15%), "Q" (25%) and "H" (30%). Defaults to "L".

Author

Thierry Onkelinx

See Also

Other internal: qr_encode(), qr_error(), qr_matrix(), qr_mode()

Examples

Run this code
qr_version("HELLO WORLD")
qr_version("hello world", ecl = "H")

Run the code above in your browser using DataLab