Learn R Programming

farr (version 0.2.39)

pg_to_parquet: Save WRDS table as parquet file.

Description

Function to get data from a table on the WRDS PostgreSQL server and save to local parquet file using DuckDB.

Usage

pg_to_parquet(table_name, schema, data_dir = Sys.getenv("DATA_DIR"))

Value

Number of rows created

Arguments

table_name

Name of table on WRDS

schema

Database schema for table

data_dir

Directory for data repository