pg_export: Export query to CSV with delimiter tabular and header.

View source: R/import_export_funs.R

pg_exportR Documentation

Export query to CSV with delimiter tabular and header.

Description

Export query to CSV with delimiter tabular and header.

Usage

pg_export(
  con,
  query,
  dir = file.choose(new = T),
  encoding = "WIN1252",
  delim = "\t"
)

Arguments

con:

connection.

query:

(chr) SQL query.

dir:

(chr) directory. Default(file.choose()).

encoding:

(chr) SET client_encoding to. Default 'WIN1252'.

delim:

(chr) Set delimiter. Default tabular.


diegogarcilazo/pgr documentation built on Nov. 16, 2023, 6:24 p.m.