qr_version {qrcode}R Documentation

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(s)

Thierry Onkelinx

See Also

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

Examples

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

[Package qrcode version 0.2.2 Index]