Description Usage Arguments Value Examples
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.
1 2 | createGoogleURL(countryCode, pubNum, kindCode,
googleURL = "https://patents.google.com/patent/", lang = "en")
|
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. |
A character vector of properly formatted URL strings.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.