Description Usage Arguments Value See Also Examples
Reads datasets of the type that are written to file with the
function write_dataset
. In principle, it should
also be possible to read such datasets with the function
read.table
, but in some locales the function
read_dataset
can prove to be slightly more robust in case the files contain
Non-Western language data.
1 2 3 4 5 6 7 8 | read_dataset(file,
header = TRUE,
sep = "\t",
quote = "",
comment_char = "",
file_encoding = "UTF-8",
stringsAsFactors = default.stringsAsFactors(),
...)
|
file |
name of the input file |
header |
boolean value that expresses whether or not the first line in the
input file contains column names. In the current implementation of
|
sep |
the field separator that is used in the input file. |
quote |
boolean value that expresses whether or not character data fields in the
file are enclosed in quotation marks. This argument is
not used in the current implementation of |
comment_char |
not used in the current implementation of |
file_encoding |
the encoding used in the input file. |
stringsAsFactors |
boolean value: should character data automatically be converted to factors? |
... |
not used in the current implementation of |
The function read_dataset
returns a data frame.
See also write_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.