Programming with R

How-To Tutorials Tips - R Programming for Humans

How to add R {magrittr}'s %>% Pipe Operator in VSCode as Keyboard Shortcut

If you are looking looking for an RStudio Alternative (which is super awesome anyways and I’ve huge respect for the company), You’d know that Microsoft’s Visual Studio code (VSCode) is your best bet. Why? VSCode helps deal with multiple languages in just one IDE in a much better way than RStudio. How to use setup VSCode for R? - https://www.youtube.com/watch?v=INP-FsluDuk What if you’re wondering how to do a Keyboard Shortcut %>% operator on VSCode that’s quite popular with tidyverse users, It’s quite simple with a custom Keybinding and this tutorial will help you with that.

ggplot2 Bar Chart - Simple to Powerful Themes with Kaggle Notebook

In this R tutorial, We’ll learn the following tips and tricks of ggplot2 bar chart Create a new R Notebook from Kaggle Dataset Clean Column names with Janitor How Make a Ggplot2 Bar Chart (Column Chart) in R Why use geom_col instead of geom_bar How to flip the coordinates of ggplot Bar charts How to reorder the Bars in Ggplot Bar Chart How to add Labels to a ggplot bar chart How to make a beautiful ggplot2 bar chart from Basic to Powerful Themes using ggthemes Video Tutorial on ggplot2 Bar Chart Themes Please Subscribe to the channel for more Data Science (with R - also Python) videos Final Code - Economist Theme state_2018 %>% select(one_of('state_ut','total_victims')) %>% arrange(desc(total_victims)) %>% head(20) %>% mutate(state_ut = fct_reorder(state_ut,total_victims)) %>% ggplot() + geom_col(aes(y = state_ut,x =total_victims), fill = 'red') + geom_label(aes(y = state_ut,x =total_victims, label = total_victims), fill = 'yellow')+ labs(title = '2018 Rape Victims in India - Top 20 states', subtitle = 'by Total Victim Count', caption = 'Data Source: Kaggle / Crimes in India') + #theme_hc(style = 'darkunica') + theme_economist() + theme(axis.

Daily Stock Gainers Automated Web Scraping in R with Github Actions

In this R tutorial, We’ll learn how to schedule an R script as a CRON Job using Github Actions. Thanks to Github Actions, You don’t need a dedicated server for this kind of automation and scheduled tasks. This example can be extended for Automated Tweets or Automated Social Media Posts, Daily Data Extraction of any sort. In this example, We’re going to use a code to extract / scrape Nifty50 (Indian Stock Exchange Index) Top Gainers Daily and store it as a csv file which can be used for Data Analytics on those stocks.

Computer Vision Object Detection in R with YOLO Pre-trained Models

In this R Tutorial, We’ll learn how to perform a very popular Computer Vision task which is Object Detection in R with YOLO (pre-trained Models). For this we’re going to use the image.darknet package from https://github.com/bnosac. The good thing about this package is that it doesn’t require neither reticulate nor Python. It’s ported from the native C code and hence the performance is good. Video Walkthrough Please Subscribe to the channel for more Data Science (with R) videos Code #devtools::install_github("bnosac/image", subdir = "image.