semi.auto.paired | R Documentation |
Interactively retrieve paired qualitative data from a paper. If you want to exit the interactive mache earlier type 'quit' as your response
semi.auto.paired(
in_dir,
keywords1,
keywords2,
highlight,
n,
cleaned_text,
sorted_words
)
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 |
A data frame containing matches above threshold and verified matches
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.