• Stars
    star
    175
  • Rank 218,059 (Top 5 %)
  • Language
    R
  • Created almost 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Introduction to Data Analysis, using R (2013)

README

Ivaylo Petev and myself use this repository to teach an undergraduate introduction to data analysis. The course is online.

If you are reading the course on its online pages, just replace the .html extension of a page by .R to download the underlying code.

HOWTO

The course pages are formatted in R Markdown syntax and were converted to HTML with knitr 1.4:

install.packages("knitr")
citation("knitr")

The knitting routine is in the .Rprofile. To compile the whole course, set the IDA folder as your working directory and then type ida.build() (takes a bit more than five minutes on optic fiber).

Other files are called from the code/ and data/ folders. Most datasets are downloaded on the fly if they are missing from the data/ folder, so make sure that you are online while running the scripts.

The whole course was coded and taught with RStudio. The code was ran on R 2.15.2, 2.15.3, 3.0.0 and 3.0.1, on a MacBook Air running OS X 10.8 and Mac OS X 10.9. Most plots use ggplot2 version 0.9.3.1 (just in case compatibility breaks at some point).

CREDITS

Thanks to the Sciences Po Reims staff, who offered invaluable support, and to the small group of students who enrolled in (and survived to) the course. The R-2013-Lyon slides have a bit more detail on the practicals.

Bits and pieces of the code were posted to Gist, RPubs and Stack Overflow during development. Thanks to the great R developer and user communities that live online, and which we are now proud to count ourselves in.

If you share the spirit of all this, you should consider joining the Foundation for Open Access Statistics and check out places like OpenCPU, the Open Knowledge Foundation and other initiatives in open access, open data, open source and open science.

HISTORY

Aug 2013: better data management, with large or multiple-file datasets read from ZIP archives. Switched datasets to .csv thanks to GitHub.

Jul 2013: typos and broken links. Removed some functions in .Rprofile that are now part of the questionr package.

Jun-2013: first draft. Everything kind of works, Sessions 5--7 are unlisted, the code/ folder contains a few more exercises. That's it for now!

May-2013: added more course content and better resolution (100dpi) for all plots.

Apr-2013: added a lot of course content and cleaner plots. Also adding the R-2013-Lyon folder for a conference presentation on the course.

Mar-2013: reviewed course structure: less files, more code, tons of new examples and exercises.

Feb-2013: more efficient .Rprofile functions and improved knitr routine, tidier code on the early sessions.

Jan-2013: first release.

First release: January 2013.
Last revised: August 2013.

More Repositories

1

awesome-network-analysis

A curated list of awesome network analysis resources.
R
3,474
star
2

ggnet

Network visualization with ggplot2
R
194
star
3

ggnetwork

Geoms to plot networks with ggplot2
HTML
144
star
4

srqm

An introductory statistics course for social scientists, using Stata
TeX
49
star
5

dsr

Introduction to Data Science with R (Sciences Po, Paris, 2023)
R
44
star
6

parlnet

Bill cosponsorship networks in European parliaments.
17
star
7

burd

A blue-red Stata colour scheme that supports up to 11 diverging classes.
16
star
8

ggcorr

Correlation matrixes with ggplot2:
R
15
star
9

tidykml

Turn KML Files into tidy data frames:
R
12
star
10

neta

Archived code. See the `parlement` repo for the updated version:
R
8
star
11

congress

Bill cosponsorship networks in the U.S. Congress.
R
8
star
12

parlviz

Interactive visualizations of legislative cosponsorship networks.
PHP
7
star
13

qogdata

Functions to manipulate Quality of Government data and related material. Related experiments: https://github.com/briatte/psData and https://github.com/rOpenGov/psData. For an up-to-date QOG R package, use https://github.com/rOpenGov/rqog.
R
6
star
14

theses.fr

R scripts to toy with the XML API of the theses.fr website.
R
6
star
15

elus

Bayesian ideal points of French politicians, based on Twitter data.
R
5
star
16

R-Meeting-Sponsors-France

All sponsors of national R conferences held in France.
R
5
star
17

computing

Computing advice for social science undergraduate students
Shell
5
star
18

kmaps

R code to map cancer mortality and incidence in Europe.
R
4
star
19

moralecon

R/Stata code to map out the moral economy of a few social policy issues in various countries.
R
4
star
20

epam

Amendment cosponsorship networks in the European Parliament.
R
3
star
21

ggtable

Simple frequencies and tabulations as bar plots.
R
3
star
22

swd

Two-day workshop on scraping legislative data, organised by URFIST Bordeaux in 2018.
R
3
star
23

euspeech

What MEPs said or wrote during plenary sessions, 1999–2014.
R
3
star
24

orszaggyules

Bill cosponsorship networks in the Hungarian Parliament.
R
3
star
25

congres-afsp

AFSP conference panel co-attendance networks.
R
2
star
26

parlamento

Bill cosponsorship networks in the Italian Parliament.
R
2
star
27

stortinget

Bill cosponsorship networks in the Norwegian Parliament.
R
2
star
28

assembleia

Legislative cosponsorship networks in the Portuguese parliament.
R
2
star
29

sociothese

Topic models for @coulmont.
R
2
star
30

gukhoe

Bill cosponsorship networks in the South Korean Parliament.
R
2
star
31

eduskunta

Bill cosponsorship networks in the Finnish Parliament.
R
2
star
32

parlement

Bill cosponsorship networks in the French Parliament.
R
2
star
33

edm

Early day motion cosponsorships in the U.K. House of Commons.
R
2
star
34

belparl

Bill cosponsorship networks in the Belgian Parliament.
R
2
star
35

epsaconf

Data from EPSA conferences, 2019-2023
R
2
star
36

charlie-covers

Co-occurrence networks from Charlie Hebdo covers, 2008-2015.
R
1
star
37

integritate

A scraper for Romanian transparency files.
R
1
star
38

riksdag

Bill cosponsorship networks in the Swedish Parliament.
R
1
star
39

parlamentul

Bill cosponsorship networks in the Romanian Parliament.
R
1
star
40

folketinget

Bill cosponsorship networks in the Danish Parliament.
R
1
star
41

oireachtas

Bill cosponsorship networks in the Irish Parliament
R
1
star
42

revues

parse Cairn.info journal metadata
HTML
1
star
43

marsad

Amendment cosponsorship networks and vote-based ideal points in the Tunisian Parliament.
R
1
star
44

ala

What got published in A List Apart, 1999-2016 – pings to @alistapart and @zeldman
R
1
star
45

aad

Data analysis examples, written in R.
R
1
star
46

swparl

Bill cosponsorship networks in the Swiss Parliament
R
1
star
47

nationalrat

Bill cosponsorship networks in the Austrian Parliament.
R
1
star
48

ecprconf

Data and networks from ECPR conferences
R
1
star