refInfo: Extract Information from References

View source: R/refInfo.R

refInfoR Documentation

Extract Information from References

Description

Function to parse different reference information (e.g. authors, year of publication) from a reference string in the standard TreeCo format

Usage

refInfo(
  ref.data = NULL,
  ref.name = "Reference",
  ref.id = "refID",
  ref.type = NULL,
  default.ref.type = "article"
)

Arguments

ref.data

the data frame with references in the TreeCo format

ref.name

the name of the columns containing the reference. Default to the TreeCo column 'Reference'.

ref.id

the name of the columns containing the reference. Default to the TreeCo column 'refID'.

ref.type

a vector containing the type of reference (i.e. journal article, book, book chapter, monography).

default.ref.type

a character containing the default type of reference to be assumed when the reference type is missing or when it does not match one of the ‘ref.type' classes. Defaults to ’article'.

Details

The standard TreeCo format for the references is the following: Author(s). Year. Title. Publication name volume (issue): start page-endpage. The separation between multiple authors must be done using semi-colons, ampersand (i.e. '&'), a vertical pipe (i.e. '|')or the word 'and' surrounded by spaces in English, Portuguese, Spanish, German or Latin (i.e. ' and ', ' e ' ', ' y ', ' und ', ' et ').

Value

a data frame with number with the reference information in each column.

Author(s)

Renato A. F. de Lima

See Also

refString


LimaRAF/TreeCo documentation built on Sept. 25, 2024, 12:41 p.m.