Description Usage Arguments Value Examples
View source: R/extract_citation_cases.R
Extract citation cases.
1 2 | extract_citation_cases(from, to, authorname, studyyear, scope = NULL,
number = NULL, clean = NULL, encoding = "ASCII")
|
from |
Name of folder within working directory in which the citing documents (.txt files) are located, e.g. "Beck 1995". |
to |
Folder in which citation case data is stored. |
authorname |
Enter the names of all authors separated by comma. |
studyyear |
Enter the year when the study was published. |
scope |
Enter number of sentences before/after citation case sentence to extract. |
clean |
If TRUE (default) it cleanes some stuff before the citation case |
Returns and saves data (.csv and .html) containing citation cases in current working directory.
1 2 3 4 5 6 7 8 9 | ## Not run:
setwd("C:/Users/paul/Google Drive/Research/2016_Quality_of_citations/data")
folder <- "docs"
study.title <- "The colonial origins of comparative development: An empirical investigation"
authorname <- "Acemoglu, Johnson, Robinson"
studyyear <- 2001
extract_citation_cases(folder, authorname, studyyear, clean = TRUE) #
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.