Creating a database in PostgreSQL, importing data to the db, connecting with R and performing analysis on the db using R
All you need is R with RPostgreSQL package and a PostgreSQL database.
Steps:
- Create the database
- Copy the table(s) needed to your db
- Load the RPostgreSQL package in R (or Rstudio)
- Create a connection to the data base
- The query your data into an R dataframe
- You are the free to do your analysis in R!!!