as.yaml | R Documentation |
Converts a quanteda dictionary object constructed by the dictionary function into the YAML format. The YAML files can be edited in text editors and imported into quanteda again.
as.yaml(x)
x |
a dictionary object |
as.yaml
a dictionary in the YAML format, as a character object
## Not run:
dict <- dictionary(list(one = c("a b", "c*"), two = c("x", "y", "z??")))
cat(yaml <- as.yaml(dict))
cat(yaml, file = (yamlfile <- paste0(tempfile(), ".yml")))
dictionary(file = yamlfile)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.