Description Usage Arguments Value
View source: R/pg_pivot_longer.R
Convert PostgreSQL table to long format
1 | pg_pivot_longer(conn, tbl, new_tbl = NULL, cols, names_to, values_to)
|
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. |
tibbl or a table in the database
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.