semi.auto | R Documentation |
Interactively retrieve qualitative data from a paper
semi.auto(in_dir, keywords, highlight, n, exact, cleaned_text, sorted_words)
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 |
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)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.