conc_to_dataset_antconc: Convert concordances generated with AntConc to a dataset

Description Usage Arguments Value

Description

Reads one or several concordances generated with AntConc, and converts their contents to a single dataset that can be read with the function read_dataset. The encoding in the output is 'UTF-8'.

Usage

1
2
3
4
conc_to_dataset_antconc(x,
                        outfile,
                        version = c("3.4.3", "3.2.4"),
                        file_encoding = "")

Arguments

x

name of the input file(s). This can be either a single name, or a longer vector with several names. In the latter case, the contents of all input files is merged before writing the output file.

outfile

Name of the output file. The encoding in the output is 'UTF-8'.

version

Version of AntConc that was used to create the infiles. You can only specify one version (that is then assumed to apply to all files in x).

file_encoding

file encoding in the input file(s). If all input files have the same encoding, then assign a single character string to fileEncoding. If different input files have different encodings, then assign to file_encoding a character data vector of the same length as x.

Value

This function invisibly returns the value of its first argument x.


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