Skip to content

Commit 8c4fb2c

Browse files
committed
added cosponsorship network
1 parent 9f9121e commit 8c4fb2c

File tree

7 files changed

+43
-18
lines changed

7 files changed

+43
-18
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: networkdata
22
Type: Package
33
Title: Repository of Network Datasets
4-
Version: 0.2.0
4+
Version: 0.2.1
55
Authors@R:
66
person(given = "David",
77
family = "Schoch",

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# networkdata 0.2.1
2+
3+
* added cosponsorship network
4+
15
# networkdata 0.2.0
26

37
* updated graphs according to new igraph release

R/data-misc.R

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' Centrality literature network
77
#' @description In 1979, Linton Freeman published a paper which defined several kinds of centrality. His typology has become the standard for network analysis. Freeman, however, was not the first to publish on centrality in networks. His paper is part of a discussion which dates back to the 1940s. The network shows the papers that discuss network centrality and their cross- references until 1979. Arcs represent citations; they point from the cited paper to the citing paper.
88
#'
9-
#'In principle, papers can only cite papers which appeared earlier, so the network is acyclic. Arcs never point back to older papers just like parents cannot be younger than their children. However, there are usually some exceptions in a citation network: papers which cite one another, e.g., papers appearing at about the same time and written by one author. We eliminated these exceptions by shrinking the papers by an author which are connected by cyclic citations. In the centrality literature network, we used the latter approach (e.g., two publications by Gilch in 1954 are shrunk to one paper #GilchSW-54).
9+
#' In principle, papers can only cite papers which appeared earlier, so the network is acyclic. Arcs never point back to older papers just like parents cannot be younger than their children. However, there are usually some exceptions in a citation network: papers which cite one another, e.g., papers appearing at about the same time and written by one author. We eliminated these exceptions by shrinking the papers by an author which are connected by cyclic citations. In the centrality literature network, we used the latter approach (e.g., two publications by Gilch in 1954 are shrunk to one paper #GilchSW-54).
1010
#' @format igraph object
1111
#' @source https://sites.google.com/site/ucinetsoftware/datasets/centralityliteraturenetwork
1212
#' @references
@@ -30,15 +30,15 @@
3030
#' These networks were created by parsing fan-generated scripts from https://genius.com/artists/Game-of-thrones.
3131
#' Pairs of characters are connected by (undirected) edges weighted by the number of interactions.
3232
#'
33-
#'\preformatted{
34-
#'There are five interaction types. Character A and Character B are connected whenever:
33+
#' \preformatted{
34+
#' There are five interaction types. Character A and Character B are connected whenever:
3535
#'
3636
#' Character A speaks directly after Character B
3737
#' Character A speaks about Character B
3838
#' Character C speaks about Character A and Character B
3939
#' Character A and Character B are mentioned in the same stage direction
4040
#' Character A and Character B appear in a scene together
41-
#'}
41+
#' }
4242
#' @format list of igraph objects
4343
#' @source https://networkofthrones.wordpress.com, Downloaded from https://github.com/mathbeveridge/gameofthrones/
4444
#' @references Andrew Beveridge and Michael Chemers, "The Game of 'The Game of Thrones': Networked Concordances and Fractal Dramaturgy", in: Paola Brembilla and Ilaria De Pacalis (eds.), Reading Contemporary Serial Television Universes: A Narrative Ecosystem Framework, Routledge, 2018.
@@ -121,7 +121,7 @@
121121
#' Knecht's School Data
122122
#' @description This data is about a friendship network in a Dutch school class. The data were collected between September 2003 and June 2004 by Andrea Knecht, supervised by Chris Baerveldt, at the Department of Sociology of the University of Utrecht (NL). The entire study is reported in Knecht (2008).
123123
#'
124-
#'The 26 students were followed over their first year at secondary school during which friendship networks as well as other data were assessed at four time points at intervals of three months. There were 17 girls and 9 boys in the class, aged 11-13 at the beginning of the school year. Network data were assessed by asking students to indicate up to twelve classmates which they considered good friends.
124+
#' The 26 students were followed over their first year at secondary school during which friendship networks as well as other data were assessed at four time points at intervals of three months. There were 17 girls and 9 boys in the class, aged 11-13 at the beginning of the school year. Network data were assessed by asking students to indicate up to twelve classmates which they considered good friends.
125125
#'
126126
#' Delinquency is defined as a rounded average over four types of minor delinquency (stealing, vandalism, graffiti, and fighting), measured in each of the four waves of data collection. The five-point scale ranged from `never' to `more than 10 times', and the distribution is highly skewed. In a range of 1-5, the mode was 1 at all four waves, the average rose over time from 1.4 to 2.0, and the value 5 was never observed.
127127
#' @details The network contains the following attributes:
@@ -131,8 +131,8 @@
131131
#' 1 = never, 2 = once, 3 = 2-4 times, 4 = 5-10 times, 5 = more than 10 times;
132132
#' 0 = missing}
133133
#' \item{alcohol}{alcohol "How often did you drink alcohol with friends in the last three months?"
134-
#'categories: 1 = never, 2 = once, 3 = 2-4 times, 4 = 5-10 times, 5 = more than 10 times;
135-
#'0 = missing. Only waves 2-4}
134+
#' categories: 1 = never, 2 = once, 3 = 2-4 times, 4 = 5-10 times, 5 = more than 10 times;
135+
#' 0 = missing. Only waves 2-4}
136136
#' \item{"gender"}{(1 = girl, 2 = boy)}
137137
#' \item{"age"}{years}
138138
#' \item{"ethnic"}{Ethnicity (1 = Dutch, 2 = other, 0 = missing)}
@@ -141,3 +141,8 @@
141141
#' @format list of four igraph objects
142142
#' @references Andrea Knecht (2006), Networks and actor attributes in early adolescence, Utrecht, The Netherlands Research School ICS, Department of Sociology, Utrecht University
143143
"knecht"
144+
145+
#' Senat 2015 Bill cosponsorship
146+
#' @description Bill cosponsorship network for the 115th Senate obtained from govtrack.us
147+
#' @format two-mode network as igraph object
148+
"cosponsor"

README.Rmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ output: github_document
66

77
```{r, include = FALSE}
88
knitr::opts_chunk$set(
9-
collapse = TRUE,
10-
comment = "#>",
11-
fig.path = "man/figures/README-",
12-
out.width = "100%"
9+
collapse = TRUE,
10+
comment = "#>",
11+
fig.path = "man/figures/README-",
12+
out.width = "100%"
1313
)
1414
```
1515

1616
# networkdata <img src="man/figures/logo.png" align="right"/>
1717

1818
<!-- badges: start -->
1919
[![CRAN status](https://www.r-pkg.org/badges/version/networkdata)](https://cran.r-project.org/package=networkdata)
20-
[![networks](https://img.shields.io/badge/networks-2259-green.svg)](https://github.com/schochastics/networkdata)
20+
[![networks](https://img.shields.io/badge/networks-2260-green.svg)](https://github.com/schochastics/networkdata)
2121
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7189928.svg)](https://doi.org/10.5281/zenodo.7189928)
2222
<!-- badges: end -->
2323

@@ -32,7 +32,7 @@ The package contains a large variety of different network datasets (all in `igra
3232
- Tennis networks compiled from https://github.com/JeffSackmann (please give credit to him if you use this data)
3333
- Star Wars Character Interactions (Episode 1-7) from https://github.com/evelinag/StarWars-social-network
3434

35-
The package includes `r length(list.files("data"))` datasets containing 2259 networks.
35+
The package includes `r length(list.files("data"))` datasets containing 2260 networks.
3636

3737
A list of all datasets can be obtained with
3838
```{r data,eval=FALSE}
@@ -47,7 +47,7 @@ Due to the nature of the package (only data, no functions), the package will not
4747
The developer version can be installed from github
4848

4949
```{r install, eval=FALSE}
50-
#install.packages("remotes")
50+
# install.packages("remotes")
5151
remotes::install_github("schochastics/networkdata")
5252
```
5353

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[![CRAN
99
status](https://www.r-pkg.org/badges/version/networkdata)](https://cran.r-project.org/package=networkdata)
10-
[![networks](https://img.shields.io/badge/networks-2259-green.svg)](https://github.com/schochastics/networkdata)
10+
[![networks](https://img.shields.io/badge/networks-2260-green.svg)](https://github.com/schochastics/networkdata)
1111
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7189928.svg)](https://doi.org/10.5281/zenodo.7189928)
1212
<!-- badges: end -->
1313

@@ -29,7 +29,7 @@ repositories:
2929
- Star Wars Character Interactions (Episode 1-7) from
3030
<https://github.com/evelinag/StarWars-social-network>
3131

32-
The package includes 986 datasets containing 2259 networks.
32+
The package includes 987 datasets containing 2260 networks.
3333

3434
A list of all datasets can be obtained with
3535

@@ -46,7 +46,7 @@ will not go to CRAN at any point. The developer version can be installed
4646
from github
4747

4848
``` r
49-
#install.packages("remotes")
49+
# install.packages("remotes")
5050
remotes::install_github("schochastics/networkdata")
5151
```
5252

data/cosponsor.rda

54.3 KB
Binary file not shown.

man/cosponsor.Rd

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)