Learn R Programming

qrcode (version 0.3.0)

qr_mode: Determine the required mode

Description

The current implementation handles three modes: numeric, alphanumeric and byte. Kanji is currently not supported. Please contact the maintainer if you need it. Numeric: only digits from 0 to 9 Alphanumeric: all numeric characters, upper case LETTERS, and the characters " " (space), "$", "%", "*", "+", "-", ".", "/" and ":" Byte: All characters from the Latin 1 (ISO 8859-1) character set. Input strings with an other encoding are converted into Latin 1. The function return an error if such conversion fails.

Usage

qr_mode(x)

Value

a character indicating the mode

Arguments

x

the input string

Author

Thierry Onkelinx

See Also

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

Examples

Run this code
qr_mode("0123")
qr_mode("A")
qr_mode("a")

Run the code above in your browser using DataLab