Difference between revisions of "R: Package Pendukung Text Processing"

From OnnoWiki
Jump to navigation Jump to search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Di Shell
 
Di Shell
  
  sudo apt install libudunits2-dev
+
  sudo apt update
 +
sudo apt -y install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev
 +
 
 +
# untuk readtext (antiword dan pdftools)
 +
sudo apt-get install libapparmor-dev libpoppler-cpp-dev
 +
 
 +
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 Shell
 +
 
 +
java -version
 +
sudo apt -y install default-jre
 +
sudo apt -y install default-jdk
 +
sudo R CMD javareconf
 +
sudo apt -y install r-cran-rjava
 +
sudo apt -y install libgdal-dev libproj-dev
  
 
Di R
 
Di R
  
 
  install.packages("dplyr")
 
  install.packages("dplyr")
  install.packages("tidyverse")
+
  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("rJava")
 +
install.packages("RWeka")
 
  install.packages("stringr")
 
  install.packages("stringr")
 
  install.packages("tidytext")
 
  install.packages("tidytext")
  install.packages("ggplot2")
+
  install.packages("tidyverse")
  install.packages("igraph")
+
  install.packages("tm")
  install.packages("ggraph")
+
  install.packages("widyr")
 +
install.packages("wordcloud")
 +
install.packages("xlsx")
 +
 
  
 
  library(dplyr)
 
  library(dplyr)
  library(tidyverse)     # data manipulation & plotting
+
  library(igraph)
 +
library(ggraph)
 +
library(ggplot2)
 +
library(lubridate)
 +
library(NLP)
 +
library(pdftools)
 +
library(qdap)
 +
library(readtext)
 +
library(rJava)
 +
library(RWeka)
 +
library(scales)
 
  library(stringr)        # text cleaning and regular expressions
 
  library(stringr)        # text cleaning and regular expressions
 
  library(tidytext)      # provides additional text mining functions
 
  library(tidytext)      # provides additional text mining functions
  library(ggplot2)
+
  library(tidyverse)     # data manipulation & plotting
  library(scales)
+
  library(tm)
  library(igraph)
+
  library(wordcloud)
  library(ggraph)
+
  library(xlsx)
 +
 
 +
 
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[R]]
 
* [[R]]

Latest revision as of 08:38, 8 November 2018

Di Shell

sudo apt update
sudo apt -y install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev
# untuk readtext (antiword dan pdftools)
sudo apt-get install libapparmor-dev libpoppler-cpp-dev

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 Shell

java -version
sudo apt -y install default-jre
sudo apt -y install default-jdk
sudo R CMD javareconf
sudo apt -y install r-cran-rjava
sudo apt -y install libgdal-dev libproj-dev

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("rJava")
install.packages("RWeka")
install.packages("stringr")
install.packages("tidytext")
install.packages("tidyverse")
install.packages("tm")
install.packages("widyr")
install.packages("wordcloud")
install.packages("xlsx")


library(dplyr)
library(igraph)
library(ggraph)
library(ggplot2)
library(lubridate)
library(NLP)
library(pdftools)
library(qdap)
library(readtext)
library(rJava)
library(RWeka)
library(scales)
library(stringr)        # text cleaning and regular expressions
library(tidytext)       # provides additional text mining functions
library(tidyverse)      # data manipulation & plotting
library(tm)
library(wordcloud)
library(xlsx)


Pranala Menarik