clean_text: Clean text files to facilitate citation case extraction.

Description Usage Arguments Value Examples

View source: R/clean_text.R

Description

Clean text files to facilitate citation case extraction.

Usage

1
clean_text(folder, number = NULL, encoding = "ASCII")

Arguments

folder

Name of folder within working directory in which the citing documents (.txt files) are located, e.g. "Beck 1995".

number

Number of .txt files in folder the function should be applied to. Default is "all .txt files in folder".

Value

Returns and saves text files that have been cleaned (e.g. abbreviations replaced)

Examples

1
2
3
4
5
6
## Not run: 
 setwd("C:/Users/paul/Google Drive/Research/2016_Quality_of_citations/data")
 folder <- "Acemoglu 2001"
 clean_text(folder)

## End(Not run)

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