Learn R Programming

MSG (version 0.8)

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)

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

Examples

Run this code
# NOT RUN {
char_gen()

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

Run the code above in your browser using DataLab