knitr::opts_chunk$set(echo = TRUE, comment = NA, error = TRUE, warning = FALSE, message = FALSE, fig.align = 'center')
library(petro.One) library(dplyr) # provide two different set of keywords to combine as vectors major <- c("production", "production engineering") minor <- c("machine-learning", "machine learning") paper_results <- run_papers_search(major, minor, get_papers = TRUE, verbose = FALSE, len_keywords = 4)
(papers <- paper_results$papers)
# No need # # eliminate duplicates by paper_id and paper title # papers <- papers %>% # distinct(paper_id, book_title, .keep_all = TRUE) %>% # print
papers %>% # machine learning OR machine-learning filter(grepl(pattern = "machine[-\\s]learning", x = book_title, ignore.case = TRUE, perl = TRUE))
papers %>% # machine learning OR machine-learning filter(grepl(pattern = "artificial[-\\s]intelligence", x = book_title, ignore.case = TRUE, perl = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.