pg_pivot_longer: Convert PostgreSQL table to long format

Description Usage Arguments Value

View source: R/pg_pivot_longer.R

Description

Convert PostgreSQL table to long format

Usage

1
pg_pivot_longer(conn, tbl, new_tbl = NULL, cols, names_to, values_to)

Arguments

conn

Connection.

tbl

Database table.

new_tbl

Optional. If you want to create a new table on the database intead of importing to R.

cols

<tidy-select> Variables to pivot into long format.

names_to

A string specifying the name of the column to create from the data stored in the column names of tbl.

values_to

A string specifying the name of the column to create from the data stored in cell values.

Value

tibbl or a table in the database


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