Description Usage Arguments Value
View source: R/pg_pivot_wider.R
Converts PostgreSQL table from long to wide format
1 | pg_pivot_wider(conn, tbl, new_tbl, id_cols = NULL, names_from, values_from)
|
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 |
Tibble or a new table on the database
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.