Category: R
- Cambios en la población adulto mayor entre los censos 2017 y 2024 2025-12-10
Utilizo tablas y mapas basados en el paquete chilemapas para mostrar los cambios en la población adulto mayor entre los censos 2017 y 2024 en Chile.
- Mapas para Explorar los Resultados del Censo 2024 de Población y Viviendas en Chile usando 'd3po' 2025-12-08
Luego de corregir los códigos territoriales en los datos del Censo 2024, muestro algunos mapas interactivos utilizando 'd3po'.
- Censo 2024 de Población y Viviendas en Chile con Códigos Territoriales Corregidos 2025-12-05
He liberado los datos censales en formato DuckDB para proporcionar los datos censales con los códigos
- Explorando los datos del Censo 2024 de Población y Viviendas en Chile 2025-12-04
Analizo el porcentaje de población por nivel educacional y región a modo de explicar como realizar
- How to deploy a Shiny app for production 2025-11-14
Where to start for deploying Shiny apps for production use, including hosting services and server setup.
- Creating a London Population Map with D3po 2025-11-14
Learn how to create a population density map of London using the D3po package in R.
- R 4.5.1 - Batteries Included 2025-10-30
R 4.5.1 installer for Windows with OpenBLAS and Rtools included
- ¿Qué es el Índice de Gini y cómo calcularlo? 2025-10-30
Una guía para entender y calcular el Índice de Gini en R
- An update to Open Trade Statistics to showcase Tabler and D3po 2025-10-28
Showcasing D3po groups and subgroups for data visualization
- Tabler 0.1.0 is here! 2025-10-27
Tabler Dashboard implementation for R/Shiny
- Using D3po with Tabler 2025-10-27
D3po+Tabler demo
- D3po 1.0.0 is here! 2025-10-18
It only took me five years
- A Personal Message from an Open Source Contributor 2025-10-16
Dear fellow developers and data scientists...
- cpp4r is now on CRAN! 2025-10-16
The cpp4r package aims to help users to interact with R objects using C++ code.
- Add a test coverage badge to your R packages using GitHub Actions 2025-10-10
Generate a test coverage badge for your R packages using GitHub Actions without needing a separate service
- Double y-axis plots with ggplot2 and purrr 2025-10-03
Scaling data to create double y-axis plots.
- R Para Ciencia de Datos - Explorar - Visualización de datos 2025-09-30
Lectura guiada del capítulo 3 de 'R Para Ciencia de Datos'.
- Introducing cpp4r A C++ Interface for R's C Interface 2025-09-29
The cpp4r package aims to help users to interact with R objects using C++ code.
- Spurious Correlations in R - Correlation is not Causation 2025-09-27
The spuriouscorrelations package aims to help educators to explain why correlation does not imply causation.
- Creating a simple R package with C++ code to sum \"a + b\" using different data types 2025-09-26
This video covers the basics of R and C++ syntax.
- Creating a simple R package with C++ code to sum \"a + b\" using different data types 2025-09-24
A tutorial on creating a simple R package that includes C++ code for a basic operation (video).
- A Personal Message from an Open Source Contributor 2025-09-23
Dear fellow developers and data scientists...
- Creating a simple R package with C++ code to sum \"a + b\" 2025-09-23
A tutorial on creating a simple R package that includes C++ code for a basic operation (video).
- Open Trade Statistics v6.0 is publicly available! 2025-09-22
Expanded database including 2023 trade flows and redesigned dashboard.
- wbstats is back on CRAN 2025-09-14
Search and download data from the World Bank Data API.
- How much can President Trump's Tariffs Impact Canadian Households? 2025-09-12
An exploratory analysis of the potential effects of President Trump's tariffs on Canadian households using
- The 'Tanakh' R package 2025-09-12
An R package for accessing the Tanakh (Hebrew Bible) with English and Hebrew text.
- Forced Disappearances in Chile (1973-1989) 2025-09-11
Lest we forget.
- Creating a simple R package with C++ code to sum \"x + 1\" 2025-09-10
A tutorial on creating a simple R package that includes C++ code for a basic operation (video).
- Installing RStudio and Positron on Manjaro Linux 2025-09-07
Installers to keep track of the RStudio and Positron installation on Manjaro Linux.
- Step-by-Step Guide to Use RSelenium with Firefox (Linux and Windows) 2025-09-05
Using RSelenium and Firefox to organize hundreds of HTML sections into one table.
- Step-by-Step Guide to Use R and Selenium on Windows 2025-09-04
Using R, selenium and purrr to organize hundreds of HTML sections into one table.
- Sending plain text emails when communicating with CRAN 2025-09-02
Switch your email client to plain text mode before sending technical questions to CRAN and/or R mailing lists.
- Do you need a custom R package or Shiny dashboard for your team? 2025-09-01
I build production-ready R tools that solve business problems.
- Efficiently merging multiple datasets 2025-08-31
Using purrr to avoid repeating code.
- Plotting with ukmaps v0.0.4 and ggplot2 2025-08-30
This is the first proper version of UK Maps.
- How to import Zotero files and convert the data into a bibliographic class 2025-08-29
Answering reader's questions.
- How do you make a histogram with equally sized dots or squares for each observation, and colour them by another 2025-08-29
Answering reader's questions.
- Plotting UK Maps with ggplot2 (Part 2) 2025-08-28
Ukmaps is growing and will become a "real" R package.
- How to learn C++ as an R user 2025-08-28
Answering reader's questions.
- Plotting UK Maps with ggplot2 2025-08-27
Super early stage work but it will improve.
- Capybara v1.8.0 is now available on CRAN 2025-08-27
Comparison with Alpaca and Fixest.
- Reading conditional formatting in XLSX files in a Tidy way with readxl 2025-08-26
Data organization issues derived from not using the tools correctly and its solution.
- Send Me Your Questions and Ideas 2025-08-26
I'm always looking for ways to make this blog more useful for the R, Shiny, and C++ community.
- A Personal Message from an Open Source Contributor 2025-08-26
Dear fellow developers and data scientists...
- Reading the background colour of an XLSX file in a Tidy way with readxl 2025-08-25
Data organization issues derived from not using the tools correctly and its solution.
- Deploying a Golem Shiny App to ShinyApps.io 2025-08-24
How I had to troubleshoot some issues.
- Replicating Hansen's Econometrics using Armadillo 2025-08-22
The goal of the 'hansen' R package is to provide the datasets used in the exercises of the book
- A Shiny app to visualize the Edgeworth box 2025-08-22
Edgeworth box with contract curve for the 2x2 exchange model using Cobb-Douglas utility functions.
- Step-by-Step Guide to Use R and Selenium to Scrape Empleos Publicos (Part 3) 2025-08-21
Using R, selenium and purrr to organize hundreds of HTML sections into one table.
- Step-by-Step Guide to Use R and Selenium to Scrape Empleos Publicos (Part 2) 2025-08-21
Using R, selenium and purrr to organize hundreds of HTML sections into one table.
- R Loves Math cpp11armadillo connects R with Armadillo C++ linear algebra library, prioritizes prioritize safety over speed 2025-08-21
cpp11armadillo connects R with the Armadillo C++ linear algebra library through the modern cpp11 interface, providing developers with safer, more flexible tools for computationally intensive work.
- Step-by-Step Guide to Use R and Selenium to Scrape Empleos Publicos 2025-08-20
Using R, selenium and purrr to organize hundreds of HTML sections into one table.
- Using Visual Studio Code to Debug R Packages with C++ Code 2025-08-17
Connecting the VSCode debugger to cpp11 code.
- Personalized R and Shiny training sessions 2025-08-15
A time limited offer because of scholarship delays
- New book 'C++ for R Users' and all my other books for free or 10 USD each 2025-08-12
A time limited offer because of scholarship delays
- A Personal Message from an Open Source Contributor 2025-08-11
Dear fellow developers and data scientists...
- Adding Shiny app's parameters to the URL 2025-08-10
Modify the URL from Shiny UI elements and viceversa
- Kendallknight An R package for efficient implementation of Kendall’s correlation coefficient computation 2025-06-19
With 20,000 observations, this reduces the required operations from 400 million pairwise comparisons to 200,000 operations.
- Celebrating 18 Years of ggplot2 A Special Bundle Offer 2025-06-15
Get two books for the price of one to celebrate 18 years of ggplot2. Learn to create beautiful plots in R and Python.
- R for Windows with OpenBLAS (Make Your R Code Run 30x Faster) 2025-05-26
What if I told you that you could make your R computations run up to 30 times faster without modifying any of your code?
- spuriouscorrelations An R package to show examples about spurious correlations 2025-05-17
Correlation is not causation.
- cpp11armadillo An R package to use the Armadillo C++ library 2025-02-19
My 2nd PhD article
- The REDATAM format and its challenges for data access and information creation in public policy 2025-02-17
My 1st PhD article
- Cpp11 pull requests to improve the integration of R and C++ 2025-01-25
Proposed changes to cpp11 to improve the user experience.
- Reading REDATAM databases in R 2024-10-03
Read REDATAM databases directly into R using the REDATAM Converter
- cpp11eigen 0.1.0 is available on CRAN 2024-08-26
The idea is to pass matrices/vectors from R to C++, write pure
- cpp11armadillo 0.3.0 is available on CRAN 2024-08-22
The idea is to pass matrices/vectors from R to C++, write pure
- Kendallknight an R package for Kendall's correlation coefficient 2024-08-16
A solution that took me hours of 'averaging' Google search results and using my brain.
- CP 1919 / PSR B1919+21 Dataset 2024-06-22
aka Joy Division's plot
- Advanced International Trade in R 2024-06-18
A reference for those who come from Stata and want to learn R.
- The Hitchhiker's Guide to Linear Models with codes and datasets sale 2024-06-17
Extras package with codes and datasets.
- The Hitchhiker's Guide to Linear Models 2024-06-08
Some minor corrections.
- Install PostGIS on Red Hat Enterprise Linux (RHEL) 8 2024-06-05
A solution that took me hours of 'averaging' Google search results and using my brain.
- If Doom runs everywhere, it must run on Shiny 2024-05-10
I was able to run Doom on Shiny!
- Logistic regression is not advanced 'machine learning' or 'artificial intelligence' 2024-05-01
Logistic regression is using an exponential function and using the linear model repeated times to predict the probability of a binary outcome.
- tabulapdf Extract Tables from PDF Documents 2024-04-29
R bindings to the Tabula java library.
- Tetley caffeine meter replication with ggplot2 2024-04-05
Customizing a ggplot2 object to change backgrounds and other elements.
- Canadamaps 0.3.0 2024-03-24
Plot maps of Canada with ggplot2 at different levels of aggregation.
- Introducing cpp11armadillo R and Armadillo integration using the header-only cpp11 R package 2024-01-26
The idea is to pass matrices/vectors from R to C++, write pure
- Introducing Capybara Fast and Memory Efficient Fitting of Linear Models With High-Dimensional Fixed Effects 2024-01-19
Short demonstration.
- The Hitchhiker's Guide to Linear Models is now complete 2023-09-08
My new book.
- An R package with Baltagi's 'Econometric Analysis of Panel Data' datasets 2023-08-28
Tidy datasets to let you focus on the econometric techniques rather than on data wrangling.
- The Hitchhiker's Guide to Econometrics with Available Code in R 2023-08-16
My new book.
- The Hitchhiker's Guide to Econometrics Based on the famous R programming language 2023-08-11
My new book.
- Plotting a COVID-19 vaccination map with different projections (with updated versions of canadamaps and tintin) 2023-08-02
Using a real dataset from Health Canada to show ggplot's flexibility.
- One Weird Trick to Make Ggplot2 Columns the Same Width 2023-07-31
Using "position_dodge" and "position_dodge2" functions for plots alignment.
- Text Analysis in R - Exploring Barbie and Oppenheimer Reviews - Part 1 2023-07-27
Much of the data proliferating today is unstructured and text-heavy.
- Canadian Hansard Live Database 2023-07-27
A ready to use SQL database that we can consult with dplyr.
- Workshop Analyzing BarbieHeimer texts with R 2023-07-24
Much of the data proliferating today is unstructured and text-heavy.
- Step-by-Step Guide to Scrape UN Comtrade metadata with R and Selenium 2023-07-23
Using purrr's map to combine thousands of tables into one.
- R and/or Python training - 4 sessions - With discount 2023-07-23
I'm happy to help you mastering the basics of R and/or Python, and therefore make your daily work easier and more enjoyable.
- A naive simplex phase 2 implementation with C++ 11 and R 2023-07-18
Combining for and while loops to print the tableau until finding an optimal solution.
- Linear Models in R - Part 3 2023-07-13
Keeping the examples aligned with changes in R since 2016.
- Linear Models in R - Part 2 2023-07-13
Keeping the examples aligned with changes in R since 2016.
- Linear Models in R - Part 1 2023-07-13
Keeping the examples aligned with changes in R since 2016.
- The Hitchhiker's Guide to GGplot2 and Plotnine Updated and With Discount 2023-07-11
Keeping the examples aligned with changes in R since 2016.
- Credible intervals with Capybaras, R and Stan (rstan and cmdstanr interfaces) 2023-07-03
Obtaining a credible interval with rstan and then the same credible interval with cmdstanr.
- Building a basic Shiny app with Golem - Part II (Video) 2023-06-29
Golem is a framework for Robust Shiny Applications.
- Write a function with Python and R 2023-06-28
The goal here is to write a function that tells us if a number is prime or not.
- Tidy Freedom Index as an R Package 2023-06-26
A concrete example about reshaping data to simplify the posterior analysis.
- (Update) How to install RStudio, RStudio Server and Quarto with 'apt install 2023-06-24
Install R packages as you would do on Windows.
- Student's t-test explained with R and Pokemon 2023-06-24
Gotta Test 'Em All!
- Building a basic Shiny app with Golem - Part I (Video) 2023-06-08
Golem is a framework for Robust Shiny Applications.
- Moving from bookdown to Quarto (and the corresponding GitHub Actions changes) 2023-06-06
What I did to keep R4DS-ES simple.
- Tidying the Freedom Index 2023-06-05
A concrete example about reshaping data to simplify the posterior analysis.
- Debunking the idea that cpp11 does not offer OpenMP support 2023-06-05
A concrete example with lists to debunk a common myth.
- 'ggplot2' Palettes From Tintin Comic Books 2023-05-29
A few examples using head trauma data from the comic itself.
- Moving from Blogdown to Quarto 2023-05-29
What worked and what didn't work immediately, and how to get everything running.
- Moving from Blogdown to Quarto 2023-05-29
What worked and what didn't work immediately, and how to get everything running.
- An introductory workshop in Shiny, June 1st from 17.30 to 18.30 (FREE) 2023-05-23
Personalised training to learn R and Shiny.
- Cpp11 (R package) vendoring 2023-05-23
Copying the code for the dependencies into my project’s source tree.
- A step by step guide to write an R package that uses C++ code (Ubuntu) 2023-05-21
Using cpp11 (R package) on Ubuntu.
- Using bookdown with gh-pages 2023-05-18
Deploying bookdown to gh-pages with GitHub Actions
- (Update) How to install RStudio and Quarto with 'apt install 2023-05-10
Install R packages as you would do on Windows.
- Modifying the shinydashboard theme with one line 2023-05-04
How to apply organizational/corporate themes to shinydashboard.
- The Perfect Setup for Ubuntu and R (and how to install/update RStudio with apt install rstudio/apt update) 2023-04-30
Install R packages as you would do on Windows.
- Install the sf package on Ubuntu 20.04 2023-01-17
Ggplot2 effective visualization.
- Export in Bananen in Tonnen von 1994-2005 (Banana exports in tonnes from 1994-2005) 2022-12-21
Ggplot2 effective visualization.
- SQL Databases for Students and Educators 2022-12-15
Personalised training to learn R and Shiny.
- R and Shiny Training 2022-12-15
Personalised training to learn R and Shiny.
- R and Shiny Training 2022-11-06
Personalised training to learn R and Shiny.
- Clases de R y Shiny en Castellano 2022-11-06
Clases personalizadas para aprender R y Shiny.
- Entrevista con la Dra. Julia Silge 2022-08-23
PLN, flujos de trabajo reproducibles, papel de la ciencia de los datos, y más. Esta es la mejor entrada que encontrarás en mi blog.
- ¿Es Pi Aleatorio? 2022-08-13
Una simulación con supuestos ficticios para obtener una estimación
- Un extraño truco para obtener el máximo (o el mínimo) 2022-08-09
Uso eficiente de las funciones vectorizadas
- Generalized Linear Models, Part I The Logistic Model 2022-07-18
An applied short approach to Generalized Linear Models.
- Comparing CENSO 2017 versions for Python and R 2022-06-20
Using DuckDB with different languages
- One Weird Trick to Obtain the Maximum (or Minimum) 2022-06-10
Efficient use of vectorized functions
- leaRn! (learn R) 2022-05-28
I'm offering R training
- RStudio on Kubernetes 2022-02-02
One click application you can deploy on Kubernetes clusters
- Shinywordle A shiny app to solve the game Worldle and the power of regular expressions 2022-01-14
A quick demo of regular expressions in R and their power.
- Using Arrow with Shiny 2022-01-03
A quick exploration of different technologies to work with
- Comparing SQLite, DuckDB and Arrow with UN Trade Data 2021-08-27
A quick exploration of different technologies to work with
- Using the R-Universe 2021-08-26
The R-Universe provides a very simple way to create personal CRAN-like
- Usando el R-Universe 2021-08-26
El R-Universe proporciona una forma muy sencilla de crear repositorios
- analogsea Using Arrow, S3 and DigitalOcean for efficient model fitting in RStudio 2021-07-17
How to fit models by using the cloud with a minimal data transfer to
- Wes McKinney InteRview 2021-06-06
The road to ease data access easier and making research results more reproducible.
- Microeconomic Theory and Linear Regression 2021-04-02
Linear models and models comparison to estimate apples production.
- The Hitchhiker's Guide to Ggplot2 and Plotnine Flash Sale 2021-01-04
These books will help you master R and Python plots the easy way.
- SQL Databases for Students and Educators 2020-09-18
Different SQL engines to cover small edge cases when moving between DB back ends
- A Crash Course on PostgreSQL for R Users 2020-08-09
How to read and write data in efficient ways
- The Hitchhiker's Guide to Ggplot2 is for sale at $10.00 2020-05-12
The Hitchhiker's Guide to Ggplot2 is for sale at $10.00
- Dr. Julia Silge InteRview 2020-04-14
NLP, reproducible workflows, data science role, and more. This is the best blog entry that you'll ever find in my blog.
- Thomas Lumley InteRview 2020-04-09
Survey analysis in R, community contributions, and more.
- Apply for the Google Summer of Code and Help Us Improving The R Code Optimizer 2020-03-20
Contribute to open-source while earning some cash.
- LP and Tidy Data Principles 2020-02-04
Searching keywords and patterns in LP songs.
- A full RStudio Server setup for Package Development in 5 minutes 2019-12-21
Go from zero to a full setup to fit models in a few clicks.
- The Hitchhiker's Guide to Ggplot2 + The Hitchhiker's Guide to Plotnine 2019-12-21
This book will help you master Python plots the easy way.
- A full RStudio Server setup to use H2O in 5 minutes 2019-10-05
Go from zero to a full setup to fit models in a few clicks.
- Open Trade Statistics An Independent project that values reproducible research and provides tidy trade data 2019-09-22
A nice example of R in production, in my opinion.
- d3po R package for easy interactive D3 visualization with Shiny 2019-09-22
The definitive htmlwidget is a combination of existing ideas, blended in a different way.
- Hyde Mod A blogdown theme with full XML feed and custom MathJax for equation numbering 2019-09-08
A customized theme for blogdown and hugo.
- An updated version of The Hitchhiker's Guide to Ggplot2 2019-09-08
This book will help you master R plots the easy way.
- A new image on DigitalOcean to start using RStudio Server without waiting more than 2 minutes 2019-04-27
I initially made an image for DigitalOcean because I wanted to spend my lectures and workshops giving useful examples and not solving software installation issues.
- How to install R on Mac, Ubuntu and Windows 2019-04-07
This is a beginner guide that is designed to save yourself a headache and valuable time if you decide to install R yourself.
- Compiling R with multi-threaded linear algebra libraries on Ubuntu 2018-04-21
A guide for multithreaded R performance
- How many sticker envelopes do I need to complete the FIFA World Cup album? 2018-04-14
A simple simulation written in R
- Writing tables into a PostgreSQL database using R 2018-03-14
A short guide to install and use RPostgreSQL and/or odbc packages.
- Is Microsoft R Open faster than CRAN R? 2017-12-02
Installing R with different numerical libraries and benchmarking them.
- Rick and Morty and Tidy Data Principles (Part 3) 2017-11-06
Searching keywords and patterns in the TV show.
- Rick and Morty and Tidy Data Principles (Part 2) 2017-10-22
Searching keywords and patterns in the TV show.
- Quickly Install R on Ubuntu 17.10 2017-10-20
Install R on Ubuntu the fast way and without missing dependencies.
- Rick and Morty and Tidy Data Principles (Part 1) 2017-10-13
Searching keywords and patterns in the TV show.
- Quickly Install R on Ubuntu 16.04 2017-10-03
Install R on Ubuntu the fast way and without missing dependencies.
- Install R, Python and Pelican Blog Tool on Windows 2017-08-28
Install R and more tools using Chocolatey package manager.
- Working With SPSS Data in R 2017-06-24
Work with SPSS format and labelled data in R.
- Linear Regression and ANOVA shaken and stirred (Part 2) 2017-03-21
These concepts are understood as separate concepts most of the times. The truth is they are extremely related to each other.
- Linear Regression and ANOVA shaken and stirred (Part 1) 2017-03-20
These concepts are understood as separate concepts most of the times. The truth is they are extremely related to each other.
- Structural Equation Modelling in R (Part 2) 2017-01-15
Here we explain how to estimate SEM models coefficients without a theoretical introduction
- Install R and Python via Homebrew 2017-01-08
Install R and more tools using Homebrew, and save yourself a headache and valuable time when you need newer software versions.
- Using googlesheets and mailR packages in R to automate reporting 2016-12-18
Using Excel for reporting has its drawbacks, here I share a way to solve some of those drawbacks.
- Structural Equation Modelling in R (Part 1) 2016-12-07
Here I explain how to estimate CFA models coefficients without a theoretical introduction
- RStudio Server on OS X Sierra 2016-11-25
I had to install RStudio Server in a computer recently upgraded to OS X Sierra.
- Joy Division's Unknown PleasuRes 2016-11-09
I wanted to create a wallpaper and here's how I solved white borders and some difficulties.
- RStudio Server on OS X El Capitan 2016-10-21
This is the result of trial and error until I got RStudio Server working in my network.
- Creating a timeline using R 2016-02-02
Step by step tutorial to create a timeline that you can open on any browser.
- Using Rmd Markdown in Pelican 2015-12-25
A definitive setup for OSX.