cleanGoogleURL: Sanitize a Google URL before attempting to extract data

Description Usage Arguments Value See Also Examples

View source: R/processPatentData.R

Description

Clean up the google URL to make sure it will be read properly.

If you use the createGoogleURL function, you won't have to use this function. However, if you use your own generator or want to change the language, use this function to do so.

Usage

1
cleanGoogleURL(googleURL, langCode = "en")

Arguments

googleURL

A character value of a google URL.

langCode

A language code, default set to "en" English.

Value

A clean character vector of a Google Patents URL.

See Also

createGoogleURL

Examples

1
2
3
4
cleanGoogleURL("https://patents.google.com/patent/US8818682B1/mx")
cleanGoogleURL("https://patents.google.com/patent/US8818682B1/")
cleanGoogleURL("https://patents.google.com/patent/US8818682B1")
cleanGoogleURL("https://patents.google.com/patent/US8818682B1/en")

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