Document types for Papers"

When a query is returned by OnePetro inside the web page with the results also comes the dc_type or document type for all the papers that returned from that search.

The type of papers are:

If we want to know what type of papers are available for a particular search we follow these steps:

Create a query

Our search is for the exact words "well test". How many papers return from that search?

library(petro.One)

my_url <- make_search_url(query = "well test", 
                          how = "all")          # exact match

get_papers_count(my_url)

Find the type of papers available

sdc <- papers_by_type(my_url)
sdc

We see that the most numerous category is conference papers followed by journal. The total number of papers is about r sprintf("%d", sum(sdc$value))

Variable type of documents

Depending of the words we are searching, the document types that return from the search may not be the same in all cases. For instance, in this case, we don't get the type for Other or Chapter.

library(petro.One)

my_url <- make_search_url(query = "smart completion", 
                          how = "all")          # exact match

sdc    <- papers_by_type(my_url)
sdc

Get a list of papers for specific type.

All types for deepwater

library(petro.One)

my_url <- make_search_url(query = "deepwater")

sdc    <- papers_by_type(my_url)
sdc


Try the petro.One package in your browser

Any scripts or data that you put into this service are public.

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