Getting papers on machine learning by an arbitrary discipline. These disciplnes are flexible, and can be modified by any user.

library(petro.One)

major <- c("machine learning")
minor <- c("reservoir", "production")
           # "logging", "completion", "intervention",
           # "drilling", "geology", "seismic", "petrophysics", "geophysics", 
           # "economics", "metering", "pvt", "offshore")

# the returning data structure is a a list
# the list contains two dataframes: one for the keywords and a second for the papers
prod.li <- join_keywords(major, minor, get_papers = TRUE, sleep = 3)
prod.li

Using rprojroot::find_rstudio_root_file() to get the root folder of the project. Then we write the csv to the data folder.

# write dataframes to csv
# readr::write_csv(prod.li$keywords, "ml-keywords.csv")
# readr::write_csv(prod.li$papers,   "ml-papers.csv")

write.csv(prod.li$keywords, file.path(rprojroot::find_rstudio_root_file(), "data", "ml-keywords.csv"), row.names = FALSE)
write.csv(prod.li$papers,   file.path(rprojroot::find_rstudio_root_file(), "data", "ml-papers.csv"), row.names = FALSE)


f0nzie/petroleum.ml documentation built on May 12, 2019, 6:22 p.m.