make_encode | R Documentation |
Make an encode function.
make_encode(table, pre = identity)
table |
Hash table for looking up code words. |
pre |
A function to pre-process the input. |
A function that takes a string and return the encoded string.
table <- morse:::make_code_table(list(c("a", "1"), c("b", "2"))) encode <- make_encode(table) encode("ab")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.