Generate a matrix of similar characters

Share:

Description

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

Usage

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

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

Value

a character matrix on the screen

Author(s)

Yihui Xie <http://yihui.name>

Examples

1
2
3
char_gen()

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