The function returns a bit string containing the message.

qr_error(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".

Value

The message as a bits() object.

See also

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

Author

Thierry Onkelinx

Examples

qr_error("HELLO WORLD")
#> 0010000001011011000010110111100011010001011100101101110001001101010000110100000011101100000100011110110000010001111011000001000111101100000100011110110011010001111011111100010011001111010011101100001101101101