read_dfr_citations | R Documentation |
citations.CSV
or citations.tsv
file.This function reads in a single citations.CSV
(2013 and earlier) or
citations.tsv
(2014 and after) from JSTOR DfR. It knows about the
eccentricities of these formats. Use read_dfr_metadata
to load
and aggregate multiple files.
read_dfr_citations(filename, strip.white = TRUE, ...)
filename |
the file to read. If |
strip.white |
passed to |
... |
Passed on to |
This function assumes that each file has a trailing delimeter at the end of every line. DfR has changed their output data format before, so check results carefully.
We do some minimal post-processing of the data. White space is
trimmed by default. Publication dates in the pubdate
column
are converted to Date
objects (but beware the false precision
of these dates; see pubdate_Date
. The type
column is converted to a factor.
Notes about other fields: the doi
column is, in my experience, always
identical to the id
field, but it is kept here just in case. The
title
and abstract
fields may contain markup (HTML or even
LaTeX). Most DfR documents lack abstracts in the metadata.
The author
column may contain multiple names, but must be
inspected carefully before processing. The separator among names
may be either a tab or ", "
. A single name may contain the
separator character without disambiguation ("Rudolf Tombo,
Jr."
).
Extra parameters to this function are passed on to read.csv
or
read.table
.
A dataframe of metadata.
read_dfr_metadata
, pubdate_Date
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.