R Studio on Redshift
- 26 Jul 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
R Studio on Redshift
- Updated on 26 Jul 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Panoply on Redshift
To connect your Panoply data warehouse to R:
Install the RPostgreSQL package. You can do this in your R environment by running the following:
install.packages("RPostgreSQL") library(RPostgreSQL)
Set up the connection to your Panoply data warehouse:
driver <- dbDriver("PostgreSQL") SampleConnection <- dbConnect(driver, host = 'db.panoply.io', port = '5439', user = '{your Panoply username}', password = '{your Panoply password}', dbname = '{the name of the Panoply DB containing your data}')
Load your data into an R dataframe for analysis:
SampleDF = dbReadTable(SampleConnection, '{table name}')
Was this article helpful?