txm_to_iramuteq: Converts a TXM corpus directory to an Iramuteq corpus file.

View source: R/txm_to_iramuteq.R

txm_to_iramuteqR Documentation

Converts a TXM corpus directory to an Iramuteq corpus file.

Description

Converts a TXM corpus directory to an Iramuteq corpus file.

Usage

txm_to_iramuteq(
  from_dir,
  to_dir = NULL,
  filename = "textot.txt",
  encoding = "UTF-8"
)

Arguments

from_dir

the corpus directory (contains metadata.csv and multiple .txt files)

to_dir

the directory that will contain the output file

filename

the name of the Iramuteq-formatted txt file (defaults to "textot.txt")

encoding

the encoding of the TXM corpus (defaults to UTF-8)

Value

no R output but new file with name 'filename'

Examples

txm_to_iramuteq(from_dir=system.file("extdata/fables",
                                     package="textoteR"),
                filename="data-raw/alltexts_iramuteq.txt")

lvaudor/textoteR documentation built on April 5, 2025, 3:03 a.m.