Difference between revisions of "R: Package Pendukung Text Processing"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 29: | Line 29: | ||
install.packages("lubridate") | install.packages("lubridate") | ||
install.packages("NLP") | install.packages("NLP") | ||
+ | install.packages("pdftools") | ||
install.packages("qdap") | install.packages("qdap") | ||
install.packages("stringr") | install.packages("stringr") |
Revision as of 10:17, 6 November 2018
Di Shell
sudo apt update sudo apt install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev
# untuk readtext (antiword dan pdftools) sudo apt-get install libapparmor-dev libpoppler-cpp-dev
# java sudo apt-get install oracle-java8-installer sudo update-alternatives --config java
Download data dari
https://github.com/kwartler/text_mining/archive/master.zip wget https://github.com/kwartler/text_mining/archive/master.zip unzip master.zip cd text-mining-master
Di R
install.packages("dplyr") install.packages("ggraph") install.packages("ggplot2") install.packages("ggthemes") install.packages("igraph") install.packages("lubridate") install.packages("NLP") install.packages("pdftools") install.packages("qdap") install.packages("stringr") install.packages("tidytext") install.packages("tidyverse") install.packages("tm")
library(dplyr) library(igraph) library(ggraph) library(ggplot2) library(lubridate) library(NLP) library(qdap) library(readtext) library(scales) library(stringr) # text cleaning and regular expressions library(tm) library(tidytext) # provides additional text mining functions library(tidyverse) # data manipulation & plotting