get_ok_pk: Get OK primary key

View source: R/unnest-pv-data.R

get_ok_pkR Documentation

Get OK primary key

Description

This function suggests a value that you could use for the pk argument in unnest_pv_data, based on the endpoint you searched. It will return a potential unique identifier for a given entity (i.e., a given endpoint). For example, it will return "patent_id" when endpoint = "patent".

Usage

get_ok_pk(endpoint)

Arguments

endpoint

The endpoint which you would like to know a potential primary key for.

Value

The name of a primary key (pk) that you could pass to unnest_pv_data.

Examples

get_ok_pk(endpoint = "inventor")
get_ok_pk(endpoint = "cpc_subclass")
get_ok_pk("publication/rel_app_text")


ropensci/patentsview documentation built on June 11, 2025, 3:20 p.m.