citation_location: Find location of particular citation in text

Description Usage Arguments Value Note Author(s)

Description

This is a handy function to find out where a citation is located in a manuscript.

Usage

1
2
citation_location(full_text, key, breaks = c("Introduction", "Methods",
  "Results", "Discussion"))

Arguments

full_text

This is an array of text that is usually grabbed from grab_text() function.

key

The sequence you are searching for in the full_text

breaks

The sequence of section headers to partition the paper into. By default, the text is broken into "Introduction", "Methods", "Results", and "Discussion"

Value

A list with the number of times the key was found in each section (defined by breaks) in full_text.

Note

This function will allow you to specify the partitions of the manuscript in which to look for a particular citation (or phrase). It should be noted that you need to try alternate citation types (e.g., Smith (1997), (Smith 1997), Smith .... (1997)), this function isn't that cleaver...

Author(s)

Rodney J. Dyer <[email protected]>


dyerlab/footprints documentation built on May 15, 2019, 7:21 p.m.