Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Does somebody know how can you do some data mining of your Bibtex database? For example, some statistics about the number of papers per journal, author or year; stuff like that. Is there a tool or a website available?

share|improve this question
2  
slightly related: tex.stackexchange.com/q/43066 –  matth Oct 26 '12 at 10:46

1 Answer 1

up vote 3 down vote accepted

I don't know of such a tool, but it should be possible to process BibTeX data in statistical software (such as R) or even in Excel.

The bibtex package on CRAN can parse BibTeX files. Converting to a data frame should be possible on an attribute-by-attribute basis. Then you can analyze whatever you want. See also this related question on SO.

> rref <- read.bib()
> rref
R Development Core Team (2009). _R: A Language and Environment for
Statistical Computing_. R Foundation for Statistical Computing, Vienna,
Austria. ISBN 3-900051-07-0, <URL: http://www.R-project.org>.
> str(rref)
List of 1
 $ :Class 'bibentry'  hidden list of 1
  ..$ :List of 7
  .. ..$ title       : chr "R: A Language and Environment for Statistical Computing"
  .. ..$ author      :Class 'person'  hidden list of 1
  .. .. ..$ :List of 5
  .. .. .. ..$ given  : chr "R Development Core Team"
  .. .. .. ..$ family : NULL
  .. .. .. ..$ role   : NULL
  .. .. .. ..$ email  : NULL
  .. .. .. ..$ comment: NULL
  .. ..$ organization: chr "R Foundation for Statistical Computing"
  .. ..$ address     : chr "Vienna, Austria"
  .. ..$ year        : chr "2009"
  .. ..$ note        : chr "{ISBN} 3-900051-07-0"
  .. ..$ url         : chr "http://www.R-project.org"
  .. ..- attr(*, "bibtype")= chr "Manual"
  .. ..- attr(*, "key")= chr "R"
 - attr(*, "class")= chr "bibentry"
 - attr(*, "strings")= Named chr(0) 
  ..- attr(*, "names")= chr(0) 
> rref$url
[1] "http://www.R-project.org"

If you prefer Excel, you might want to convert your bib file to XML first. I haven't tried that, though.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.