Professional Documents
Culture Documents
2015/03/03
File names
Object names
Organisation
Commenting
guidelines
Syntax
Spacing
Curly braces
Line length
Indentation
Assignment
http://adv-r.had.co.nz/Style.html
Programmingbased
SPSS
Excel
Stata
SAS
HANDS-ON TUTORIALS
use R! aRe
you suRe?
NodeXL
and
Super R logo
Source: www.redbubble.com/
R packages
igraph, Statnet,
Rsiena
Spatial
Analysis
http://cran.rproject.org/web/views/Spat
ial.html
Sp, Spatial,
OpenStreetMap
, RgoogleMaps
Temporal
Analysis
http://cran.r-project.org/w
tseries, forecast, urca,
eb/views/TimeSeries.html
wavelets, SpatioTemporal
http://cran.rproject.org/web/views/Spat
ioTemporal.html
http://cran.r-project.org/
tm, Rweka, openNLP, word
web/views/NaturalLanguagePcloud, topicmodels, RTex
rocessing.html
tTools,
sentiment,
http://cran.r-project.org/
Nnet, rpart,
trees, ReadM
party,
e
web/views/MachineLearning. randomForest, lasso2, gbm
Text Mining
Machine
Learning
html
came, I saw,
Plunge into
the water!
8
HANDS-ON!
Let's
ock
Demo 1. Software
Installation
https://www.rstudio.com/ide/
Learn
the basics of R
http://nodexl.codeplex.com/
http://tryr.codeschool.com/
More information
http://www.rstudio.com/training/online.html
http://joe11051105.gitbooks.io/r_basic/content
10
Demo1.R basics
http://chengjun.github.io/web_data_analysis/demo1_install_softwares/
11
R script http://chengjun.github.io/web_data_analysis/demo2_simulate_networks/
install.packages("igraph")
library(igraph)
size = 50
g = graph.tree(size, children = 2); plot(g)
g = graph.star(size); plot(g)
g = graph.full(size); plot(g)
g = graph.ring(size); plot(g)
g = connect.neighborhood(graph.ring(size), 2); plot(g)
g = erdos.renyi.game(size, 0.1)
# small-world network
g = rewire.edges(erdos.renyi.game(size, 0.1), prob = 0.8 ); plot(g)
# scale-free network
g = barabasi.game(size) ; plot(g)
12