Description Usage Arguments Value See Also Examples
Writes to file datasets of the type that are read with
read_dataset
, etc. In principle, it should
also be possible to write such datasets with the function
write.table
, but in some locales
the function write_dataset
can prove to be slightly more robust in case the files contain
Non-Western language data.
1 2 3 4 | write_dataset(x,
file = "",
sep = "\t",
file_encoding = "UTF-8")
|
x |
the dataset that is to be written to file |
file |
name of the output file |
sep |
the field separator that is to be used in the output file. |
file_encoding |
the encoding that is to be used in the output file. |
The function write_dataset
(invisibly) returns the value of
its first argument, viz. x
.
See also read_dataset
.
1 2 3 4 | d <- conc_re('\\w+', 'A very small corpus.', as_text = TRUE)
write_dataset(d, "example_data.tab")
d2 <- read_dataset("example_data.tab")
d2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.