createGoogleURL: Create a URL link to Google patents

Description Usage Arguments Value Examples

View source: R/processPatentData.R

Description

Create a URL string to link you to Google Patents.

By concatenating the country code, publication number, and kind code, you can generate a URL to link you to google patents for further exploration. This feature is especially useful when browsing the data in a spreadsheet or in a Shiny app. It is also useful for extracting data from the HTML content.

As each website (Google, lens.org, sumobrain.com, etc..) has a different method for generating patent URLs, these functions are website-specific.

The original Google patents version still works as of March 2017 and the googleURL value is https://www.google.com/patents/. This older version may be easier to extract data.

Usage

1
2
createGoogleURL(countryCode, pubNum, kindCode,
  googleURL = "https://patents.google.com/patent/", lang = "en")

Arguments

countryCode

A character vector of the country code of the document. Typically a two-letter character.

pubNum

A character vector of the numeric portion of a publication number.

kindCode

character vector of the kind code of a document. If not available, enter a blank string "".

googleURL

A character string of the URL to Google Patents, with working default value.

lang

The language you want to read the patent, default set to "en" english.

Value

A character vector of properly formatted URL strings.

Examples

1
2
3
4
5
acars$kindCode <- extractKindCode(acars$docNum)
acars$pubName <- extractPubNumber(acars$docNum)
acars$googleURL <- createGoogleURL(countryCode = acars$countryCode, 
pubNum = acars$pubNum, kindCode =acars$kindCode)
head(acars$googleURL)

kamilien1/patentr documentation built on May 20, 2019, 7:19 a.m.