R and Databases

The smaller datasets can be stored in a flat file like the conventional CSV file. However, whenever we encounter larger datasets and there are multiple datasets with an inherent relationship between them, it is good to store those types of data in database management software. Using R, you can easily interact with larger datasets through a connection between R session and the database management software. In this chapter, the following recipes will walk you through the process of interacting with database management software from within R:

  • Installing the PostgreSQL database server
  • Creating a new user in the PostgreSQL database server
  • Creating a table in a database in PostgreSQL
  • Creating a dataset in PostgreSQL from R
  • Interacting with the PostgreSQL database from R
  • Creating and interacting with the SQLite database from R
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset