Getting data sets directly from R

Copy and paste the following code to your R Studio platform or R version (and see the magic happens!):

library(help = “datasets”)

You can now experiment and perform any sort of analysis with any of them!


Visualizations in a Video Games data set

An exploratory analysis in Tableau using data for video games, spanning from 1984 to 2017, retrieved from Kaggle. For those interested in the visualization, it can be found here:

Video Games Analysis

The raw data has been retrieved from this link, but the necessary pre-processing steps have been performed using R:

Video Games Raw data set


The data set “Diamonds” from the ggplot2 package in R

In R, you can use various packages to perform various kind of analyses. Different packages support different functionalities and expand tremendously the capabilities of the base R. One location with the biggest collection of packages is the famous CRAN repository that can be found in this link:

The Comprehensive R Archive Network

At this location, you can find information about the various packages available in R and how to utilize them. You install a package in R by running the following command:

install.packages(“the name of the package“)

R basically, fetches the package from the CRAN repository. Once installed, you call it, meaning that you can gain access to its functionalities, using the keyword library, like this:

library(“the name of the package“)

In some cases, there are some packages that come with a sample data set, to allow you to experiment with functionalities of it, before going live, for instance, with your analysis. on of those cases, is the ggplot2 package. Running the following code in R, will yield you information regarding the “Diamonds” data set that you can use for practice:


2017-10-10 19_46_27-RStudio
A screenshot of the Help window in R Studio after running the above code