pg_pivot_wider: Converts PostgreSQL table from long to wide format

Description Usage Arguments Value

View source: R/pg_pivot_wider.R

Description

Converts PostgreSQL table from long to wide format

Usage

1
pg_pivot_wider(conn, tbl, new_tbl, id_cols = NULL, names_from, values_from)

Arguments

conn

Connection

tbl

Table

new_tbl

Optional. It creates a new table in the database instead of importing it to R

id_cols

String vector with the name of columns to be used as identities

names_from

Column whose values will become variables

values_from

Column whose values will populate the new variables

Value

Tibble or a new table on the database


jjesusfilho/rpsql documentation built on Aug. 9, 2021, 7:33 p.m.