This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-----------------------------------------------------------------------------------------------------------------# | |
# load function html to text | |
# Author: Tony Breyal | |
# Date: 2011-11-18 | |
# Modified: 2011-11-18 | |
# Description: Extracts all text from a webpage (aims to extract only the text you would see in a web browser) | |
# Packages Used: RCurl, XML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. step: Load all packages we need ---------------------------------------------------------------------------- | |
library(data.table) #order/add/modify/delete data | |
library(gganimate) #create easy animations with ggplot2 | |
library(RColorBrewer) #Provides color schemes | |
library(ggplot2) #A system for 'declaratively' creating graphics | |
# 2. step: Toy example ------------------------------------------------------------------------------------------ | |
#toy example data |