Description Usage Arguments Value Examples
Convert text to numeric matrix of Morse code
1 | text_to_morse_matrix(text, line_length = 40)
|
text |
The text to convert. Ignores anything except the letters a-z (both upper and lower case), numbers, and spaces. |
line_length |
Line length to use (number of columns in the resulting matrix). Default is 40. |
A matrix with a numeric binary representation of Morse code. Three 1s in a row represent a bar; a 1 represents a dot; a 0 is a separator. Each row of Morse code is separated from the others by a row of zeros. This is mostly useful for plotting and art.
1 2 | text_to_morse_matrix("SOS SOS SOS")
text_to_morse_matrix("SOS SOS SOS", line_length = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.