gcite_cite_over_time: Parse Google Citations Over Time

Description Usage Arguments Value Examples

View source: R/gcite_cite_over_time.R

Description

Parses a google citations over time from the main Citation page

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
gcite_cite_over_time(doc, ...)

## S3 method for class 'xml_node'
gcite_cite_over_time(doc, ...)

## S3 method for class 'xml_document'
gcite_cite_over_time(doc, ...)

## S3 method for class 'character'
gcite_cite_over_time(doc, ...)

## Default S3 method:
gcite_cite_over_time(doc, ...)

Arguments

doc

A xml_document or the url for the main page

...

arguments passed to GET

Value

A matrix of citations

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if (!is_travis()) {
library(httr)
library(rvest) 
url = "https://scholar.google.com/citations?user=T9eqZgMAAAAJ"
url = gcite_url(url = url, pagesize = 10, cstart = 0) 
ind = gcite_cite_over_time(url)
doc = content(httr::GET(url))
ind = gcite_cite_over_time(doc)
ind_nodes = rvest::html_nodes(doc, ".gsc_md_hist_b")
ind = gcite_cite_over_time(ind_nodes)
}

muschellij2/gcite documentation built on Nov. 22, 2018, 2:11 p.m.