make_search_url: Make a search URL for OnePetro

Description Usage Arguments Examples

Description

Create a URL that works in OnePetro website

Usage

1
2
3
make_search_url(query = NULL, start = NULL, from_year = NULL,
  peer_reviewed = NULL, published_between = NULL, rows = NULL,
  to_year = NULL, dc_type = NULL, how = "any")

Arguments

query

char any words that will be searched

start

int optional to set the starting paper

from_year

int optional to indicate starting year

peer_reviewed

logical optional, TRUE or FALSE

published_between

logical automatic if from_year or to_year are on

rows

int optional. number of papers to retrieve. max=1000

to_year

int optional to indicate end year

dc_type

char optional to indicate if journal, conference paper

how

char default="any". "all" will match exact words

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# Example 1
url_1 <- make_search_url(query = "flowing gradient survey", how = "all")
onepetro_page_to_dataframe(url_1)
# Example 2
url_2 <- make_search_url(query = "static  gradient survey", how = "all")
onepetro_page_to_dataframe(url_2)
# Example 3
url_3 <- make_search_url(query = "downhole flowrate measurement",
      how = "all", from_year = 1982, to_year = 2017)
onepetro_page_to_dataframe(url_3)

## End(Not run)

petro.One documentation built on May 2, 2019, 3:10 p.m.