grab_network: Grab a network of coauthors from Google Scholar profile

Description Usage Arguments Value Examples

View source: R/grab_network.R

Description

Grab a network of coauthors from Google Scholar profile

Usage

1
grab_network(scholar_id, n_coauthors = 5, n_deep = 1)

Arguments

scholar_id

The endline of a Google Scholar profile. For example, 'citations?user=amYIKXQAAAAJ&hl=en' comes from the profile https://scholar.google.com/citations?user=amYIKXQAAAAJ&hl=en

n_coauthors

Number of coauthors to explore. This number should usually be between 1 and 10 as choosing many coauthors can make the network graph too messy.

n_deep

The number of degrees that you want to go down the network. When n_deep is equal to 1 then grab_network will only grab the coauthors of Joe and Mary, so Joe – > Mary –> All coauthors. This can get out of control very quickly if n_deep is set to 2 or above. The preferred number is 1, the default.

Value

A tibble with the all authors and coauthors.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

library(coauthornetwork)

final_network <- grab_network('citations?user=amYIKXQAAAAJ&hl=en')
plot_coauthors(final_network)


## End(Not run)

cimentadaj/coauthornetwork documentation built on July 7, 2018, 10:06 p.m.