leer.mpa: Reading corpus

Description Usage Arguments Details Value Note Author(s) Examples

Description

Reads lines of text files in R.

Usage

1
leer.mpa(textfile = "", encoding = "unknown")

Arguments

textfile

The file path where the corpus is located

encoding

encoding to be assumed for input strings

Details

The corpus file must be a standard text file, which generally uses "/" to separate each letter and "ind0" to separate individuals, however, these parameters can be different.

Value

A vector containing the text lines "textfile".

Note

This function is an adaptation of the ttda.get.text function from de ttda library.

Author(s)

Daniel Rodr\'iguez dhrodriguezt@unal.edu.co

Examples

1
2
3
#revista <- leer.mpa("revista,txt",encoding="latin1")
data(revista)
revista

mpa documentation built on May 2, 2019, 9:20 a.m.

Related to leer.mpa in mpa...