semi.auto: Interactively retrieve qualitative data from a paper

View source: R/semi_auto.R

semi.autoR Documentation

Interactively retrieve qualitative data from a paper

Description

Interactively retrieve qualitative data from a paper

Usage

semi.auto(in_dir, keywords, highlight, n, exact, cleaned_text, sorted_words)

Arguments

in_dir

directory with input text files

keywords

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

highlight

A set of keywords as characters (i.e. words related to trait of interest) in a vector

n

A number specifying the threshold to consider keyword present

exact

binary 0/1 - match exactly the words?

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)

keywords<-c('bisse','musse')

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

semi.auto(in_dir = "./test_pdfs/", keywords = keywords, highlight = c('increase','decrease'), exact = 0, n = 5, cleaned_text = ct, sorted_words = td)


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