Publications by R | TypeThePipe

Launching The Project Tracker. Open Source project monitoring and release explainer with Streamlilt and LLMs

30.04.2023

With this app you can track your R & Python most used modules and packages, getting easy explanations on what’s going on in each release and version to version. Don’t miss new features in the R & Python Project Tracker! 🚀✨ Unleash Your Inner Coding Genius with Our New Streamlit App! ✨🚀 Hey there, coding enthusiasts and open source ...

2077 sym

How to Modify Variables the Right Way in R

03.04.2023

Introduction In data analysis and data science, it’s common to work with large datasets that require some form of manipulation to be useful. In this small article, we’ll explore how to create and modify columns in a dataframe using modern R tools from the tidyverse package. We can do that on several ways, so we are going from basic to advanced ...

3963 sym R (3895 sym/10 pcs) 2 img

Unlocking the Power of purrr: How to Create Multiple Lags Like a Pro in R

21.03.2023

Are you tired of creating lag variables one by one? Are you ready to level up your time series analysis game? Forget everything you know about creating lag variables. There’s a better way, and it’s been right in front of you all along. This is a good one. We’ll make use of the semi-unknown partial function to create a useful wrapper around th...

1980 sym R (1022 sym/3 pcs) 2 img

Scraping financial data from finviz with R and rvest package

13.03.2023

Introduction If you’re an active trader or investor, you’re probably aware of the importance of keeping up with the latest stock market news and trends. One tool that many traders use to stay on top of market movements is Finviz, a popular financial visualization website that offers a range of powerful tools and data visualizations to help trad...

3521 sym R (4696 sym/9 pcs) 6 img

Scrapping financial data from finviz with R and rvest package

13.03.2023

Introduction If you’re an active trader or investor, you’re probably aware of the importance of keeping up with the latest stock market news and trends. One tool that many traders use to stay on top of market movements is Finviz, a popular financial visualization website that offers a range of powerful tools and data visualizations to help trad...

3521 sym R (4696 sym/9 pcs) 4 img

Financial Markets & Value Invest in R (I) – Analyzing Market Cap data with fmpcloudr and ggplot

09.03.2023

Over the past months, heavy market drifts have occurred, and no one could have imagined the frenzy of free money being stopped. The idea that the end of history had arrived has been shattered. As we entered 2023, we witnessed certain stocks soaring in the markets, attempting to recover from their previous losses, while other macroeconomic indicator...

8524 sym R (6251 sym/18 pcs) 12 img

Turn your GGplot to 3D animation. Awesome 2D to 3D plots in R with Rayshader

26.07.2019

In 7 minutes reading, You will learn how to turn your ggplot visualizations into amazing interactive 3D plots you can export or embed in HTML/Rmarkdown. Or even better, you will export as mp4 an animation rotating the figure. As a use case, we are going to join the Spanish demographic data and GIS map, and then visualize it 1. Introduction Duri...

6136 sym R (3050 sym/11 pcs) 10 img

Counting NAs by column in R

01.10.2019

Are you starting your data exploration? Do you want to have an easy overview of your variable NA percentage? We create a function to benchmark different ways of achieving it: library(microbenchmark) library(tidyverse) benchmark_count_na_by_column <- function(dataset){ microbenchmark( # Summary table output dataset %>% summary(), # Numeric ou...

680 sym R (1966 sym/3 pcs)

Filtering a data frame by condition on multiple columns

04.10.2019

Some times you need to filter a data frame applying the same condition over multiple columns. Obviously you could explicitly write the condition over every column, but that’s not very handy. For those situations, it is much better to use filter_at in combination with all_vars. Imagine we have the famous iris dataset with some attributes missing...

1778 sym R (2125 sym/7 pcs)

Conditional Pipes

01.11.2019

How could we apply certain functions conditionally without leaving the pipeflow? This way: df %>% { if(apply_filter == TRUE) filter(., condition) else . } %>% ... Related To leave a comment for the author, please follow the link and comment on their blog: R | TypeThePipe. R-bloggers.com offers daily e-mail updates about R news and tutorials a...

489 sym R (71 sym/1 pcs)