iramuteq_to_rtibble: Converts an Iramuteq corpus file to an R tibble object.

View source: R/iramuteq_to_rtibble.R

iramuteq_to_rtibbleR Documentation

Converts an Iramuteq corpus file to an R tibble object.

Description

Converts an Iramuteq corpus file to an R tibble object.

Usage

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

Arguments

from_dir

the corpus directory (contains the Iramuteq-formatted file)

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

a R tibble comprising both metadata and texts

Examples

rtib=iramuteq_to_rtibble(from_dir=system.file("extdata",package="textoteR"),
                         filename="macron_covid.txt",
                         encoding="UTF-8")

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