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