R Tutorials for Citizen Data Scientists

Excel to Python Example – How to count cells that contain ODD and EVEN numbers

  Excel to Python Example – How to count cells that contain ODD and EVEN numbers   In this Learn by Coding example, we will learn how to count cells that contain odd and even numbers. This example is useful for beginners who has excel background and wish to learn Python programming as well as …

Modeling and forecasting population in Bangladesh using ARIMA modelling approach in R

Modeling and forecasting population in Bangladesh using ARIMA modelling approach in R Employing annual time series data on total population in Bangladesh from 1960 to 2019, we model and forecast total population over the next 20 years using the Box – Jenkins ARIMA technique. This article is presented with the following contents. Contents Introduction Method …

Data Analytics – DISPLAY A BEAUTIFUL SUMMARY STATISTICS IN R USING SKIMR PACKAGE

DISPLAY A BEAUTIFUL SUMMARY STATISTICS IN R USING SKIMR PACKAGE   This article describes how to quickly display summary statistics using the R package skimr. skimr handles different data types and returns a skim_df object which can be included in a tidyverse pipeline or displayed nicely for the human reader. Key features of skimr: Provides a larger set of statistics than …

Data Analytics – HOW TO EASILY MANIPULATE FILES AND DIRECTORIES IN R

HOW TO EASILY MANIPULATE FILES AND DIRECTORIES IN R   This article presents the fs R package, which provides a cross-platform, uniform interface to file system operations. fs functions are divided into four main categories: path_ for manipulating and constructing paths file_ for files dir_ for directories link_ for links   Contents: Prerequistes Some Key R functions Basic usage Filter files Read …

Data Analytics – GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R

GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R   This article presents how to easily highlight a ggplot using the gghighlight package. Contents: Prerequisites Line plot Histogram Scatter plot Bar plot   Prerequisites Load required packages and set the default ggplot2 theme to theme_bw(). library(tidyverse) library(gghighlight) theme_set(theme_bw()) Line plot Basic line plot p <- ggplot( airquality, …

Data Analytics – GGANIMATE: HOW TO CREATE PLOTS WITH BEAUTIFUL ANIMATION IN R

GGANIMATE: HOW TO CREATE PLOTS WITH BEAUTIFUL ANIMATION IN R   This article describes how to create animation in R using the gganimate R package. gganimate is an extension of the ggplot2 package for creating animated ggplots. It provides a range of new functionality that can be added to the plot object in order to customize how …

Data Analytics – EASY CORRELATION MATRIX ANALYSIS IN R

EASY CORRELATION MATRIX ANALYSIS IN R USING CORRR PACKAGE   This article describes how to easily compute and explore correlation matrix in R using the corrr package. The corrr package makes it easy to ignore the diagonal, focusing on the correlations of certain variables against others, or reordering and visualizing the correlation matrix. It can also compute correlation matrix …