Category: R

  1. Cambios en la población adulto mayor entre los censos 2017 y 2024

    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.

  2. Mapas para Explorar los Resultados del Censo 2024 de Población y Viviendas en Chile usando 'd3po'

    Luego de corregir los códigos territoriales en los datos del Censo 2024, muestro algunos mapas interactivos utilizando 'd3po'.

  3. Censo 2024 de Población y Viviendas en Chile con Códigos Territoriales Corregidos

    He liberado los datos censales en formato DuckDB para proporcionar los datos censales con los códigos

  4. Explorando los datos del Censo 2024 de Población y Viviendas en Chile

    Analizo el porcentaje de población por nivel educacional y región a modo de explicar como realizar

  5. How to deploy a Shiny app for production

    Where to start for deploying Shiny apps for production use, including hosting services and server setup.

  6. Creating a London Population Map with D3po

    Learn how to create a population density map of London using the D3po package in R.

  7. R 4.5.1 - Batteries Included

    R 4.5.1 installer for Windows with OpenBLAS and Rtools included

  8. ¿Qué es el Índice de Gini y cómo calcularlo?

    Una guía para entender y calcular el Índice de Gini en R

  9. An update to Open Trade Statistics to showcase Tabler and D3po

    Showcasing D3po groups and subgroups for data visualization

  10. Tabler 0.1.0 is here!

    Tabler Dashboard implementation for R/Shiny

  11. Using D3po with Tabler

    D3po+Tabler demo

  12. D3po 1.0.0 is here!

    It only took me five years

  13. A Personal Message from an Open Source Contributor

    Dear fellow developers and data scientists...

  14. cpp4r is now on CRAN!

    The cpp4r package aims to help users to interact with R objects using C++ code.

  15. Add a test coverage badge to your R packages using GitHub Actions

    Generate a test coverage badge for your R packages using GitHub Actions without needing a separate service

  16. Double y-axis plots with ggplot2 and purrr

    Scaling data to create double y-axis plots.

  17. R Para Ciencia de Datos - Explorar - Visualización de datos

    Lectura guiada del capítulo 3 de 'R Para Ciencia de Datos'.

  18. Introducing cpp4r A C++ Interface for R's C Interface

    The cpp4r package aims to help users to interact with R objects using C++ code.

  19. Spurious Correlations in R - Correlation is not Causation

    The spuriouscorrelations package aims to help educators to explain why correlation does not imply causation.

  20. Creating a simple R package with C++ code to sum \"a + b\" using different data types

    This video covers the basics of R and C++ syntax.

  21. Creating a simple R package with C++ code to sum \"a + b\" using different data types

    A tutorial on creating a simple R package that includes C++ code for a basic operation (video).

  22. A Personal Message from an Open Source Contributor

    Dear fellow developers and data scientists...

  23. Creating a simple R package with C++ code to sum \"a + b\"

    A tutorial on creating a simple R package that includes C++ code for a basic operation (video).

  24. Open Trade Statistics v6.0 is publicly available!

    Expanded database including 2023 trade flows and redesigned dashboard.

  25. wbstats is back on CRAN

    Search and download data from the World Bank Data API.

  26. How much can President Trump's Tariffs Impact Canadian Households?

    An exploratory analysis of the potential effects of President Trump's tariffs on Canadian households using

  27. The 'Tanakh' R package

    An R package for accessing the Tanakh (Hebrew Bible) with English and Hebrew text.

  28. Forced Disappearances in Chile (1973-1989)

    Lest we forget.

  29. Creating a simple R package with C++ code to sum \"x + 1\"

    A tutorial on creating a simple R package that includes C++ code for a basic operation (video).

  30. Installing RStudio and Positron on Manjaro Linux

    Installers to keep track of the RStudio and Positron installation on Manjaro Linux.

  31. Step-by-Step Guide to Use RSelenium with Firefox (Linux and Windows)

    Using RSelenium and Firefox to organize hundreds of HTML sections into one table.

  32. Step-by-Step Guide to Use R and Selenium on Windows

    Using R, selenium and purrr to organize hundreds of HTML sections into one table.

  33. Sending plain text emails when communicating with CRAN

    Switch your email client to plain text mode before sending technical questions to CRAN and/or R mailing lists.

  34. Do you need a custom R package or Shiny dashboard for your team?

    I build production-ready R tools that solve business problems.

  35. Efficiently merging multiple datasets

    Using purrr to avoid repeating code.

  36. Plotting with ukmaps v0.0.4 and ggplot2

    This is the first proper version of UK Maps.

  37. How to import Zotero files and convert the data into a bibliographic class

    Answering reader's questions.

  38. How do you make a histogram with equally sized dots or squares for each observation, and colour them by another

    Answering reader's questions.

  39. Plotting UK Maps with ggplot2 (Part 2)

    Ukmaps is growing and will become a "real" R package.

  40. How to learn C++ as an R user

    Answering reader's questions.

  41. Plotting UK Maps with ggplot2

    Super early stage work but it will improve.

  42. Capybara v1.8.0 is now available on CRAN

    Comparison with Alpaca and Fixest.

  43. Reading conditional formatting in XLSX files in a Tidy way with readxl

    Data organization issues derived from not using the tools correctly and its solution.

  44. Send Me Your Questions and Ideas

    I'm always looking for ways to make this blog more useful for the R, Shiny, and C++ community.

  45. A Personal Message from an Open Source Contributor

    Dear fellow developers and data scientists...

  46. Reading the background colour of an XLSX file in a Tidy way with readxl

    Data organization issues derived from not using the tools correctly and its solution.

  47. Deploying a Golem Shiny App to ShinyApps.io

    How I had to troubleshoot some issues.

  48. Replicating Hansen's Econometrics using Armadillo

    The goal of the 'hansen' R package is to provide the datasets used in the exercises of the book

  49. A Shiny app to visualize the Edgeworth box

    Edgeworth box with contract curve for the 2x2 exchange model using Cobb-Douglas utility functions.

  50. Step-by-Step Guide to Use R and Selenium to Scrape Empleos Publicos (Part 3)

    Using R, selenium and purrr to organize hundreds of HTML sections into one table.

  51. Step-by-Step Guide to Use R and Selenium to Scrape Empleos Publicos (Part 2)

    Using R, selenium and purrr to organize hundreds of HTML sections into one table.

  52. R Loves Math cpp11armadillo connects R with Armadillo C++ linear algebra library, prioritizes prioritize safety over speed

    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.

  53. Step-by-Step Guide to Use R and Selenium to Scrape Empleos Publicos

    Using R, selenium and purrr to organize hundreds of HTML sections into one table.

  54. Using Visual Studio Code to Debug R Packages with C++ Code

    Connecting the VSCode debugger to cpp11 code.

  55. Personalized R and Shiny training sessions

    A time limited offer because of scholarship delays

  56. New book 'C++ for R Users' and all my other books for free or 10 USD each

    A time limited offer because of scholarship delays

  57. A Personal Message from an Open Source Contributor

    Dear fellow developers and data scientists...

  58. Adding Shiny app's parameters to the URL

    Modify the URL from Shiny UI elements and viceversa

  59. Kendallknight An R package for efficient implementation of Kendall’s correlation coefficient computation

    With 20,000 observations, this reduces the required operations from 400 million pairwise comparisons to 200,000 operations.

  60. Celebrating 18 Years of ggplot2 A Special Bundle Offer

    Get two books for the price of one to celebrate 18 years of ggplot2. Learn to create beautiful plots in R and Python.

  61. R for Windows with OpenBLAS (Make Your R Code Run 30x Faster)

    What if I told you that you could make your R computations run up to 30 times faster without modifying any of your code?

  62. spuriouscorrelations An R package to show examples about spurious correlations

    Correlation is not causation.

  63. cpp11armadillo An R package to use the Armadillo C++ library

    My 2nd PhD article

  64. The REDATAM format and its challenges for data access and information creation in public policy

    My 1st PhD article

  65. Cpp11 pull requests to improve the integration of R and C++

    Proposed changes to cpp11 to improve the user experience.

  66. Reading REDATAM databases in R

    Read REDATAM databases directly into R using the REDATAM Converter

  67. cpp11eigen 0.1.0 is available on CRAN

    The idea is to pass matrices/vectors from R to C++, write pure

  68. cpp11armadillo 0.3.0 is available on CRAN

    The idea is to pass matrices/vectors from R to C++, write pure

  69. Kendallknight an R package for Kendall's correlation coefficient

    A solution that took me hours of 'averaging' Google search results and using my brain.

  70. CP 1919 / PSR B1919+21 Dataset

    aka Joy Division's plot

  71. Advanced International Trade in R

    A reference for those who come from Stata and want to learn R.

  72. The Hitchhiker's Guide to Linear Models with codes and datasets sale

    Extras package with codes and datasets.

  73. The Hitchhiker's Guide to Linear Models

    Some minor corrections.

  74. Install PostGIS on Red Hat Enterprise Linux (RHEL) 8

    A solution that took me hours of 'averaging' Google search results and using my brain.

  75. If Doom runs everywhere, it must run on Shiny

    I was able to run Doom on Shiny!

  76. Logistic regression is not advanced 'machine learning' or 'artificial intelligence'

    Logistic regression is using an exponential function and using the linear model repeated times to predict the probability of a binary outcome.

  77. tabulapdf Extract Tables from PDF Documents

    R bindings to the Tabula java library.

  78. Tetley caffeine meter replication with ggplot2

    Customizing a ggplot2 object to change backgrounds and other elements.

  79. Canadamaps 0.3.0

    Plot maps of Canada with ggplot2 at different levels of aggregation.

  80. Introducing cpp11armadillo R and Armadillo integration using the header-only cpp11 R package

    The idea is to pass matrices/vectors from R to C++, write pure

  81. Introducing Capybara Fast and Memory Efficient Fitting of Linear Models With High-Dimensional Fixed Effects

    Short demonstration.

  82. The Hitchhiker's Guide to Linear Models is now complete

    My new book.

  83. An R package with Baltagi's 'Econometric Analysis of Panel Data' datasets

    Tidy datasets to let you focus on the econometric techniques rather than on data wrangling.

  84. The Hitchhiker's Guide to Econometrics with Available Code in R

    My new book.

  85. The Hitchhiker's Guide to Econometrics Based on the famous R programming language

    My new book.

  86. Plotting a COVID-19 vaccination map with different projections (with updated versions of canadamaps and tintin)

    Using a real dataset from Health Canada to show ggplot's flexibility.

  87. One Weird Trick to Make Ggplot2 Columns the Same Width

    Using "position_dodge" and "position_dodge2" functions for plots alignment.

  88. Text Analysis in R - Exploring Barbie and Oppenheimer Reviews - Part 1

    Much of the data proliferating today is unstructured and text-heavy.

  89. Canadian Hansard Live Database

    A ready to use SQL database that we can consult with dplyr.

  90. Workshop Analyzing BarbieHeimer texts with R

    Much of the data proliferating today is unstructured and text-heavy.

  91. Step-by-Step Guide to Scrape UN Comtrade metadata with R and Selenium

    Using purrr's map to combine thousands of tables into one.

  92. R and/or Python training - 4 sessions - With discount

    I'm happy to help you mastering the basics of R and/or Python, and therefore make your daily work easier and more enjoyable.

  93. A naive simplex phase 2 implementation with C++ 11 and R

    Combining for and while loops to print the tableau until finding an optimal solution.

  94. Linear Models in R - Part 3

    Keeping the examples aligned with changes in R since 2016.

  95. Linear Models in R - Part 2

    Keeping the examples aligned with changes in R since 2016.

  96. Linear Models in R - Part 1

    Keeping the examples aligned with changes in R since 2016.

  97. The Hitchhiker's Guide to GGplot2 and Plotnine Updated and With Discount

    Keeping the examples aligned with changes in R since 2016.

  98. Credible intervals with Capybaras, R and Stan (rstan and cmdstanr interfaces)

    Obtaining a credible interval with rstan and then the same credible interval with cmdstanr.

  99. Building a basic Shiny app with Golem - Part II (Video)

    Golem is a framework for Robust Shiny Applications.

  100. Write a function with Python and R

    The goal here is to write a function that tells us if a number is prime or not.

  101. Tidy Freedom Index as an R Package

    A concrete example about reshaping data to simplify the posterior analysis.

  102. (Update) How to install RStudio, RStudio Server and Quarto with 'apt install

    Install R packages as you would do on Windows.

  103. Student's t-test explained with R and Pokemon

    Gotta Test 'Em All!

  104. Building a basic Shiny app with Golem - Part I (Video)

    Golem is a framework for Robust Shiny Applications.

  105. Moving from bookdown to Quarto (and the corresponding GitHub Actions changes)

    What I did to keep R4DS-ES simple.

  106. Tidying the Freedom Index

    A concrete example about reshaping data to simplify the posterior analysis.

  107. Debunking the idea that cpp11 does not offer OpenMP support

    A concrete example with lists to debunk a common myth.

  108. 'ggplot2' Palettes From Tintin Comic Books

    A few examples using head trauma data from the comic itself.

  109. Moving from Blogdown to Quarto

    What worked and what didn't work immediately, and how to get everything running.

  110. Moving from Blogdown to Quarto

    What worked and what didn't work immediately, and how to get everything running.

  111. An introductory workshop in Shiny, June 1st from 17.30 to 18.30 (FREE)

    Personalised training to learn R and Shiny.

  112. Cpp11 (R package) vendoring

    Copying the code for the dependencies into my project’s source tree.

  113. A step by step guide to write an R package that uses C++ code (Ubuntu)

    Using cpp11 (R package) on Ubuntu.

  114. Using bookdown with gh-pages

    Deploying bookdown to gh-pages with GitHub Actions

  115. (Update) How to install RStudio and Quarto with 'apt install

    Install R packages as you would do on Windows.

  116. Modifying the shinydashboard theme with one line

    How to apply organizational/corporate themes to shinydashboard.

  117. The Perfect Setup for Ubuntu and R (and how to install/update RStudio with apt install rstudio/apt update)

    Install R packages as you would do on Windows.

  118. Install the sf package on Ubuntu 20.04

    Ggplot2 effective visualization.

  119. Export in Bananen in Tonnen von 1994-2005 (Banana exports in tonnes from 1994-2005)

    Ggplot2 effective visualization.

  120. SQL Databases for Students and Educators

    Personalised training to learn R and Shiny.

  121. R and Shiny Training

    Personalised training to learn R and Shiny.

  122. R and Shiny Training

    Personalised training to learn R and Shiny.

  123. Clases de R y Shiny en Castellano

    Clases personalizadas para aprender R y Shiny.

  124. Entrevista con la Dra. Julia Silge

    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.

  125. ¿Es Pi Aleatorio?

    Una simulación con supuestos ficticios para obtener una estimación

  126. Un extraño truco para obtener el máximo (o el mínimo)

    Uso eficiente de las funciones vectorizadas

  127. Generalized Linear Models, Part I The Logistic Model

    An applied short approach to Generalized Linear Models.

  128. Comparing CENSO 2017 versions for Python and R

    Using DuckDB with different languages

  129. One Weird Trick to Obtain the Maximum (or Minimum)

    Efficient use of vectorized functions

  130. leaRn! (learn R)

    I'm offering R training

  131. RStudio on Kubernetes

    One click application you can deploy on Kubernetes clusters

  132. Shinywordle A shiny app to solve the game Worldle and the power of regular expressions

    A quick demo of regular expressions in R and their power.

  133. Using Arrow with Shiny

    A quick exploration of different technologies to work with

  134. Comparing SQLite, DuckDB and Arrow with UN Trade Data

    A quick exploration of different technologies to work with

  135. Using the R-Universe

    The R-Universe provides a very simple way to create personal CRAN-like

  136. Usando el R-Universe

    El R-Universe proporciona una forma muy sencilla de crear repositorios

  137. analogsea Using Arrow, S3 and DigitalOcean for efficient model fitting in RStudio

    How to fit models by using the cloud with a minimal data transfer to

  138. Wes McKinney InteRview

    The road to ease data access easier and making research results more reproducible.

  139. Microeconomic Theory and Linear Regression

    Linear models and models comparison to estimate apples production.

  140. The Hitchhiker's Guide to Ggplot2 and Plotnine Flash Sale

    These books will help you master R and Python plots the easy way.

  141. SQL Databases for Students and Educators

    Different SQL engines to cover small edge cases when moving between DB back ends

  142. A Crash Course on PostgreSQL for R Users

    How to read and write data in efficient ways

  143. The Hitchhiker's Guide to Ggplot2 is for sale at $10.00

    The Hitchhiker's Guide to Ggplot2 is for sale at $10.00

  144. Dr. Julia Silge InteRview

    NLP, reproducible workflows, data science role, and more. This is the best blog entry that you'll ever find in my blog.

  145. Thomas Lumley InteRview

    Survey analysis in R, community contributions, and more.

  146. Apply for the Google Summer of Code and Help Us Improving The R Code Optimizer

    Contribute to open-source while earning some cash.

  147. LP and Tidy Data Principles

    Searching keywords and patterns in LP songs.

  148. A full RStudio Server setup for Package Development in 5 minutes

    Go from zero to a full setup to fit models in a few clicks.

  149. The Hitchhiker's Guide to Ggplot2 + The Hitchhiker's Guide to Plotnine

    This book will help you master Python plots the easy way.

  150. A full RStudio Server setup to use H2O in 5 minutes

    Go from zero to a full setup to fit models in a few clicks.

  151. Open Trade Statistics An Independent project that values reproducible research and provides tidy trade data

    A nice example of R in production, in my opinion.

  152. d3po R package for easy interactive D3 visualization with Shiny

    The definitive htmlwidget is a combination of existing ideas, blended in a different way.

  153. Hyde Mod A blogdown theme with full XML feed and custom MathJax for equation numbering

    A customized theme for blogdown and hugo.

  154. An updated version of The Hitchhiker's Guide to Ggplot2

    This book will help you master R plots the easy way.

  155. A new image on DigitalOcean to start using RStudio Server without waiting more than 2 minutes

    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.

  156. How to install R on Mac, Ubuntu and Windows

    This is a beginner guide that is designed to save yourself a headache and valuable time if you decide to install R yourself.

  157. Compiling R with multi-threaded linear algebra libraries on Ubuntu

    A guide for multithreaded R performance

  158. How many sticker envelopes do I need to complete the FIFA World Cup album?

    A simple simulation written in R

  159. Writing tables into a PostgreSQL database using R

    A short guide to install and use RPostgreSQL and/or odbc packages.

  160. Is Microsoft R Open faster than CRAN R?

    Installing R with different numerical libraries and benchmarking them.

  161. Rick and Morty and Tidy Data Principles (Part 3)

    Searching keywords and patterns in the TV show.

  162. Rick and Morty and Tidy Data Principles (Part 2)

    Searching keywords and patterns in the TV show.

  163. Quickly Install R on Ubuntu 17.10

    Install R on Ubuntu the fast way and without missing dependencies.

  164. Rick and Morty and Tidy Data Principles (Part 1)

    Searching keywords and patterns in the TV show.

  165. Quickly Install R on Ubuntu 16.04

    Install R on Ubuntu the fast way and without missing dependencies.

  166. Install R, Python and Pelican Blog Tool on Windows

    Install R and more tools using Chocolatey package manager.

  167. Working With SPSS Data in R

    Work with SPSS format and labelled data in R.

  168. Linear Regression and ANOVA shaken and stirred (Part 2)

    These concepts are understood as separate concepts most of the times. The truth is they are extremely related to each other.

  169. Linear Regression and ANOVA shaken and stirred (Part 1)

    These concepts are understood as separate concepts most of the times. The truth is they are extremely related to each other.

  170. Structural Equation Modelling in R (Part 2)

    Here we explain how to estimate SEM models coefficients without a theoretical introduction

  171. Install R and Python via Homebrew

    Install R and more tools using Homebrew, and save yourself a headache and valuable time when you need newer software versions.

  172. Using googlesheets and mailR packages in R to automate reporting

    Using Excel for reporting has its drawbacks, here I share a way to solve some of those drawbacks.

  173. Structural Equation Modelling in R (Part 1)

    Here I explain how to estimate CFA models coefficients without a theoretical introduction

  174. RStudio Server on OS X Sierra

    I had to install RStudio Server in a computer recently upgraded to OS X Sierra.

  175. Joy Division's Unknown PleasuRes

    I wanted to create a wallpaper and here's how I solved white borders and some difficulties.

  176. RStudio Server on OS X El Capitan

    This is the result of trial and error until I got RStudio Server working in my network.

  177. Creating a timeline using R

    Step by step tutorial to create a timeline that you can open on any browser.

  178. Using Rmd Markdown in Pelican

    A definitive setup for OSX.