pv_import: Import PatentsView Data Tables

View source: R/pv_import.R

pv_importR Documentation

Import PatentsView Data Tables

Description

Import a PatentsView data table from pv_download().

Usage

pv_import(path = NULL, meta_path = NULL, save_as = NULL, dest = NULL)

Arguments

path

path to file to import

meta_path

path to metadata file to validate nrows after import

save_as

file type to save as: "rds", "rda", "qs", "csv", "parquet"

dest

destination for save_as, defaults to working directory

Details

The function uses the vroom package to import tab separated files downloaded from the PatentsView data download site.

Value

data.frame

Examples

## Not run: applications <- pv_import("grants/application.tsv.zip",
meta_path = "grants/meta_grants.rds", save_as = ".qs", dest = "grants")
## End(Not run)

poldham/patentsviewdata documentation built on March 19, 2022, 7:16 a.m.