semi.auto.paired: Interactively retrieve paired qualitative data from a paper....

View source: R/semi_auto.R

semi.auto.pairedR Documentation

Interactively retrieve paired qualitative data from a paper. If you want to exit the interactive mache earlier type 'quit' as your response

Description

Interactively retrieve paired qualitative data from a paper. If you want to exit the interactive mache earlier type 'quit' as your response

Usage

semi.auto.paired(
  in_dir,
  keywords1,
  keywords2,
  highlight,
  n,
  cleaned_text,
  sorted_words
)

Arguments

in_dir

directory with input text files

keywords1

A vector of keywords as characters (i.e. traits of interest) in a vector

keywords2

A second vector of keywords that must also be in the extracted text (exact matches only)

highlight

A vector of keywords that are highlighted in the printed text

n

A number specifying the threshold to consider keyword present

cleaned_text

output of 'clean.text' - a list of cleaned text files

sorted_words

output of 'generate.term.dataset' - a list of frequency of searched words mentioned in each paper

Value

A data frame containing matches above threshold and verified matches

Examples

download.file("https://github.com/ajhelmstetter/papieRmache/raw/master/inst/extdata/test_pdfs.zip", destfile = "./test_pdfs.zip")
unzip("./test_pdfs.zip")

ct<-clean.text(in_dir = "./test_pdfs",all_keywords=kw)

keywords1<-c('diversification')
keywords2<-c('increase','decrease')

td<-generate.term.dataset(cleaned_text = ct, in_dir = "./testpdfs/",keywords = keywords1)

semi.auto.paired(in_dir = "./test_pdfs/", keywords1 = keywords1, keywords2 = keywords2, highlight = c('increase','decrease'), n = 100, cleaned_text = ct, sorted_words = td)


ajhelmstetter/papieRmache documentation built on March 30, 2024, 9:22 p.m.