Learn R Programming

mpa (version 0.7.3)

leer.mpa: Reading corpus

Description

Reads lines of text files in R.

Usage

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

Arguments

textfile
The file path where the corpus is located
encoding
encoding to be assumed for input strings

Value

A vector containing the text lines "textfile".

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.

Examples

Run this code
#revista <- leer.mpa("revista,txt",encoding="latin1")
data(revista)
revista

Run the code above in your browser using DataLab