| write_tokens | R Documentation |
tokens object to a text fileThis function writes an object of the class tokens to a text file. Each
token is written to a separate line. The file encoding is always "UTF-8".
This file can later be read with read_tokens().
write_tokens(x, file, ...)
x |
An object of class |
file |
Name of the output file. |
... |
Additional arguments (not implemented). |
Invisibly, x.
read_tokens()
Other writing functions:
write_assoc(),
write_conc(),
write_fnames(),
write_freqlist(),
write_txt(),
write_types()
(tks <- tokenize("The old man and the sea."))
write_tokens(tks, "file_with_tokens.txt")
(tks2 <- read_tokens("file_with_tokens.txt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.