Learn R Programming

MSG (version 0.9)

char_gen: Generate a matrix of similar characters

Description

This function prints a matrix of characters which are very similar to each other.

Usage

char_gen(x = c("V", "W"), n = 300, nrow = 10)

Value

a character matrix on the screen

Arguments

x

a character vector of length 2 (usually two similar characters)

n

the total number of characters in the matrix

nrow

the number of rows

Author

Yihui Xie <https://yihui.org>

Examples

Run this code
char_gen()

char_gen(c("O", "Q"))

Run the code above in your browser using DataLab