Skip to content

Instantly share code, notes, and snippets.

@wandabwa2004
Last active August 6, 2019 09:13
Show Gist options
  • Save wandabwa2004/c14862df29ac74192b38c81728f09b04 to your computer and use it in GitHub Desktop.
Save wandabwa2004/c14862df29ac74192b38c81728f09b04 to your computer and use it in GitHub Desktop.
library(dplyr)
library(tm)
library(readr)
library(lubridate)
library(ggplot2)
library(tidytext)
library(tidyverse)
library(stringr)
library(tidyr)
library(scales)
library(broom)
library(purrr)
library(widyr)
library(igraph)
library(ggraph)
library(SnowballC)
library(wordcloud)
library(RColorBrewer)
library(reshape2)
theme_set(theme_minimal())
library(wordcloud2)
library(plotly)
## Close all connections/Lists/trigger garbage collection/set working directory
closeAllConnections()
rm(list=ls())
##garbage collection - manual trigger
gc()
setwd("C:\\directory where your data is. ") #Set the working directory
length(dir()) ##Number of files in the folder
docs <- VCorpus(DirSource())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment