Skip to content

sgibb/sgtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install

install.packages("devtools")
library("devtools")
install_github("sgtools", "sgibb")

fetchArxiv

fetches query counts from arxiv database grouped by years

example:

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

fetchPubmed

fetches query counts from pubmed database grouped by years

Thanks to Kristoffer Magnusson for providing this nice article: An R Script to Automatically download PubMed Citation Counts By Year of Publication

example:

library("sgtools")
ms <- fetchPubmed("Mass Spectrometry[MeSH]", 2009, 2010)
ms
#     year counts
#[1,] 2009  10829
#[2,] 2010  11143

total <- fetchPubmed("", 1975, 2011);
barplot(total[, "counts"], names.arg=as.character(total[, "year"]),
        main="total number of publications in pubmed", col="#7FC97F")

pubmed publication barplot

multipleHist

computes histogram for a list of data

example:

library("sgtools")
x <- lapply(c(1, 1.1, 4), rnorm, n=1000)
multipleHist(x)

multiple histograms

About

miscellaneous R functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages