import_conc: Imports a concordance from files generated with another tool

Description Usage Arguments Value See Also Examples

Description

Imports a concordance-based data frames from files that were created with another means than the mclm function write_conc.

Usage

1
2
3
4
import_conc(x,
            file_encoding = "UTF-8",
            source_type = c("corpuseye"),
            ...) 

Arguments

x

a vector of input filenames

file_encoding

file encoding of the files referred to in x.

source_type

string that identifies the tool the field separator that is used in the input file.

...

not used in the current implementation of import_conc.

Value

The function import_conc returns a data frame of the class conc.

See Also

See also read_conc, write_conc.

Examples

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

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