fetchArxiv: fetchArxiv

Description Usage Arguments Value References Examples

Description

fetches query counts from arxiv database grouped by years

Usage

1
2
  fetchArxiv(query, fromYear,
    toYear = as.integer(format(Sys.Date(), "%Y")) - 1)

Arguments

query

character, search term e.g. "cat:stat AP AND abs:Bayes"

fromYear

numeric, start year

toYear

numeric, end year [default: last year]

Value

a 2-column matrix 1. column: "year" 2. column: "counts"

References

http://arxiv.org/help/api

Examples

1
2
3
4
5
bayes <- fetchArxiv("cat:stat.AP AND abs:Bayes", 2009, 2010)
 bayes
 #        year counts
 #   [1,] 2009      4
 #   [2,] 2010     13

sgibb/sgtools documentation built on May 29, 2019, 8:04 p.m.