Description Usage Arguments Value Examples
This function writes a text file based on an existing data.frame with "key" and "val" columns inside it.
1 | writeDictionary(mydic, exec = FALSE, outfilename = "")
|
mydic |
A data.frame containg "key" and "val" columns |
exec |
If set to TRUE, the function will write to file at outfilename. |
outfilename |
The name and path of the file you want to write, e.g., "./test.gram" |
This function will always return its output, regardless of whether or not exec is set to TRUE.
1 2 | testdic <- data.frame(key=c("key1", "key2"), val=c("a", "b"), stringsAsFactors=F)
writeDictionary(testdic)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.