extract_citation_cases: Extract citation cases.

Description Usage Arguments Value Examples

View source: R/extract_citation_cases.R

Description

Extract citation cases.

Usage

1
2
extract_citation_cases(from, to, authorname, studyyear, scope = NULL,
  number = NULL, clean = NULL, encoding = "ASCII")

Arguments

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

Value

Returns and saves data (.csv and .html) containing citation cases in current working directory.

Examples

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)

paulcbauer/citationsr documentation built on May 3, 2019, 5:47 p.m.