readTextFile: Read text files in binary mode

Description Usage Arguments Value Examples

View source: R/ANLP.R

Description

This function reads text files in the binary mode

Usage

1
readTextFile(fileName, encoding)

Arguments

fileName

A path to the text file

encoding

Read text data with encoding

Value

a list having all the text data from file

Examples

1
## Not run: sampleTextData("data/twitter.txt","UTF-8")

Example output

Loading required package: tm
Loading required package: NLP
Loading required package: qdap
Loading required package: qdapDictionaries
Loading required package: qdapRegex
Loading required package: qdapTools
Loading required package: RColorBrewer
OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed

Attaching package: 'qdap'

The following objects are masked from 'package:tm':

    as.DocumentTermMatrix, as.TermDocumentMatrix

The following object is masked from 'package:NLP':

    ngrams

The following object is masked from 'package:base':

    Filter

Loading required package: RWeka
Loading required package: dplyr

Attaching package: 'dplyr'

The following object is masked from 'package:qdap':

    %>%

The following object is masked from 'package:qdapTools':

    id

The following object is masked from 'package:qdapRegex':

    explain

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

ANLP documentation built on May 30, 2017, 4:42 a.m.