This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Converts PostgreSQL table from long to wide format | |
#' | |
#' @param conn Connection | |
#' @param tbl Table | |
#' @param new_tbl Optional. It creates a new table in the database | |
#' instead of importing it to R | |
#' @param id_cols String vector with the name of columns to be used as identities | |
#' @param names_from Column whose values will become variables | |
#' @param values_from Column whose values will populate the new variables | |
#' |