read_conc {mclm} | R Documentation |
Read a concordance from a file
Description
This function reads concordance-based data frames that are written to file
with the function write_conc()
.
Usage
read_conc(
file,
sep = "\t",
file_encoding = "UTF-8",
stringsAsFactors = FALSE,
...
)
Arguments
file |
Name of the input file. |
sep |
Field separator used in the input file. |
file_encoding |
Encoding of the input file. |
stringsAsFactors |
Logical. Whether character data should automatically
be converted to factors. It applies to all columns except for |
... |
Additional arguments, not implemented. |
Value
Object of class conc
.
See Also
import_conc()
for reading files not generated with write_conc()
.
Other reading functions:
read_assoc()
,
read_fnames()
,
read_freqlist()
,
read_tokens()
,
read_txt()
,
read_types()
Examples
(d <- conc('A very small corpus.', '\\w+', as_text = TRUE))
write_conc(d, "example_data.tab")
(d2 <- read_conc("example_data.tab"))
[Package mclm version 0.2.7 Index]