format_toderwent: convert publication number to derwent

Description Usage Arguments Details Value Examples

View source: R/formatto_derwent.R

Description

Work in progress function to convert publication numbers from PATSTAT to Derwent Innovation format. This involves identifying EP publications with a zero at the start of a number and removing them. For US numbers those numbers that are 14 charcaters are converted to 15 characters through the addition of a padding zero after CCYYYY.

Usage

1

Arguments

x

a data.frame

col

A column containing publication numbers to be transformed.

Details

Be careful when using this function as it is not thoroughly tested. Also be careful that for existing mixed datasets conversion may duplicate an existing derwent innovation number.

Value

a data frame containing the original publication numbers and a column in derwent format. Could be updated to tidyeval

Examples

1
## Not run: format_toderwent(problem_numbers)

poldham/oldhammisc documentation built on May 25, 2019, 11:23 a.m.