import_corpus_iramuteq: Import a corpus in Iramuteq format

View source: R/import.R

import_corpus_iramuteqR Documentation

Import a corpus in Iramuteq format

Description

Import a corpus in Iramuteq format

Usage

import_corpus_iramuteq(f, id_var = NULL, thematics = c("remove", "split"), ...)

Arguments

f

a file name or a connection

id_var

name of metadata variable to be used as documents id

thematics

if "remove", thematics lines are removed. If "split", texts as splitted at each thematic, and metadata duplicated accordingly

...

arguments passed to file if f is a file name.

Details

A description of the Iramuteq corpus format can be found here : http://www.iramuteq.org/documentation/html/2-2-2-les-regles-de-formatages

Value

A quanteda corpus object. Note that metadata variables in docvars are all imported as characters.


rainette documentation built on March 31, 2023, 6:43 p.m.