Learn R Programming

scholarnetwork (version 0.1)

extractNetwork: Extract collaborators network from Google Scholar page

Description

Uses scholar package to scrape Google Scholar page of an author (determined by ID) and returns a list with a list of edges and a data frame with node-level information

Usage

extractNetwork(id, n = 500, largest_component = TRUE, ...)

Arguments

id
Character string specifying the Google Scholar ID.
n
Maximum number of publications to retrieve.
largest_component
If TRUE, keep only largest component in network
...
Other options to pass to get_publications function

Details

extractNetwork

Examples

Run this code
## Not run: 
# ## Download Google Scholar network data for a sample user
# d <- extractNetwork(id="jGLKJUoAAAAJ", n=500)
# ## Plot network into file called \code{network.html}
# plotNetwork(d$nodes, d$edges, file="network.html")
# ## End(Not run)

Run the code above in your browser using DataLab