write_conc: Write a concordance to file.

Description Usage Arguments Value See Also Examples

Description

Writes an object of the class conc to file.

Usage

1
2
3
4
write_conc(x,
           file = "",
           sep = "\t",
           file_encoding = "UTF-8")

Arguments

x

the concordance 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.

Value

The function write_conc (invisibly) returns the value of its first argument, viz. x.

See Also

See also read_conc.

Examples

1
2
3
4
cd <- conc_re('\\w+', 'A very small corpus.', as_text = TRUE)
write_conc(cd, "example_data.csv")
(cd_2 <- read_conc("example_data.csv"))
as.data.frame(cd_2)

wai-wong-reimagine/mclm documentation built on May 16, 2019, 9:12 p.m.