read_ris: Read RIS files into a long-format data frame

Description Usage Arguments Value See Also

Description

This function loads one or more RIS files into a long data frame. It assigns unique record ID numbers and optionally filters out unwanted fields. The result has one line for each record-field combination, including possible repeats when a record has multiple instances of a field. The result is not quite "tidy," because no special parsing is done to extract information within the catch-all N1 field; use N1_field for that. Note also that all fields remain in string format; for example, dates are not parsed (see Y1_year). To project to a data frame with one row for each bibliographic record, use spread_ris.

Usage

1
2
read_ris(filenames, fields = getOption("mlaibr.ris_keep"),
  src_labels = NULL)

Arguments

filenames

vector of names of RIS files to read. Can also be a list of connections, or a single connection. As a convenience, if a name ends in ".zip," the file will be assumed to be a zip archive containing a single RIS file (which is the format supplied in EBSCOhost exports).

fields

which RIS fields to keep in the result. A default list is set by the package option mlaibr.ris_keep. To keep all fields, set fields=NULL.

Value

a data frame with columns id,field,value

See Also

spread_ris


agoldst/mlaibr documentation built on May 10, 2019, 7:34 a.m.