write_to_iramuteq: Writes metadata and textdata as an Iramuteq corpus file .

View source: R/write_to_iramuteq.R

write_to_iramuteqR Documentation

Writes metadata and textdata as an Iramuteq corpus file .

Description

Writes metadata and textdata as an Iramuteq corpus file .

Usage

write_to_iramuteq(
  metadata,
  textdata,
  to_dir = NULL,
  filename = "textot.txt",
  encoding = "UTF-8"
)

Arguments

metadata

metadata R tibble

textdata

textdata R tibble

to_dir

the directory that will contain the output files

filename

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

encoding

the encoding of the Iramuteq-formatted file (defaults to UTF-8)

Value

no R output but new file with name filename

Examples

metadata=get_metadata(sourcetype="Iramuteq",
                      from_dir="data-raw",
                      filename="macron_covid.txt")
textdata=get_textdata(sourcetype="Iramuteq",
                      from_dir="data-raw",
                      filename="macron_covid.txt")
write_to_iramuteq(metadata,
                  textdata,
                  to_dir="outputs",
                  encoding="UTF-8")

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