write_txt | R Documentation |
This function writes a character vector to a text file. By default, each item in the character vector becomes a line in the text file.
write_txt(x, file = "", line_glue = "\n")
x |
A character vector. |
file |
Name of the output file. |
line_glue |
Character string to be used as end-of-line marker on disk
or |
Invisibly, x
.
read_txt()
Other writing functions:
write_assoc()
,
write_conc()
,
write_fnames()
,
write_freqlist()
,
write_tokens()
,
write_types()
x <- "This is a small text." # write the text to a text file write_txt(x, "example-text-file.txt") # read a text from file y <- read_txt("example-text-file.txt") y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.