Description Usage Arguments Value Examples
This function reads text files in the binary mode
1 | readTextFile(fileName, encoding)
|
fileName |
A path to the text file |
encoding |
Read text data with encoding |
a list having all the text data from file
1 | ## Not run: sampleTextData("data/twitter.txt","UTF-8")
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.