Controlá tu casa inteligente desde R con el paquete {ha}.

Automatizá luces, sensores o activá escenas con tus análisis de datos.

Conectate a Home Assistant desde tus scripts R. Configuración simple y control total

¡Tu R más smart que nunca!

👉🏼 christophertkenny.com/ha/
#RStats #RStatsES

Descubrí más acá: https://christophertkenny.com/ha/
✍🏽 Christopher Kenny

@rstats #RStats #RStatsES #Rtips #DataScience #HomeAssistant

🎯 [TIP de R - RECURSO 📚] ¿Mapas interactivos sin servidores externos?

Descubrí {freestiler} para R: convierte tus datos espaciales en archivos PMTiles. ¡Rápido, sin dependencias y portable!

Funciona con {sf}, archivos o DuckDB. Perfecto para dashboards Shiny/Quarto.

Más info: https://walker-data.com/freestiler/articles/getting-started.html
✍🏽 Kyle Walker

#RStats #RStatsES #Rtips #DataScience
@rstats

🧩 {ggpop}: transformá números en personas.

Gráficos de población circulares con íconos de Font Awesome, integrados con ggplot2. Ideal para comunicar datos demográficos a audiencias no técnicas.

✔️ geom_pop() para proporción/población
✔️ 2.000+ íconos personalizables
✔️ Integración total con ggplot2 y tidyverse

💡 Combinalo con dplyr para visualizaciones que la gente entiende al primer vistazo.

🔗 https://github.com/jurjoroa/ggpop
✍️ jurjoroa

#RStats #RStatsES #Rtips #DataScience @rstats

🧩 [TIP] Pipelines reproducibles con {targets}

Orquestá análisis en R: {targets} detecta cambios, recomputa solo lo necesario y usa paralelo.

Cómo empezar:
• funciones en R/
• _targets.R
• ver DAG: tar_visnetwork()
• correr: tar_make()
• leer: tar_read()

Ideal para modelado y reportes automáticos. 🔗 docs.ropensci.org/targets/
✍🏽 Will Landau

#rstats #Rtips #targets @rstats

🧩 [r_tip] - ¿Querés que tus visualizaciones cobren vida?

Con el paquete {gganimate} podés crear animaciones sobre gráficos ggplot2 y mostrar transiciones, evolución temporal o cambios por categoría.

✔️ Extiende ggplot2 con funciones intuitivas (transition_*, enter_*, exit_*)
✔️ Ideal para storytelling con datos en presentaciones o redes
✔️ Compatible con gifski, transformr y temas personalizados

🔗 https://gganimate.com/
✍️ @thomasp85

#RStats #Rtips #gganimate #DataViz

🧩 [R-TIP] – ¿Te gusta la magia? Acá va un truco con {janitor} 🧼

Con clean_names() podés limpiar todos los nombres de columnas de tu dataset en un paso:

✔️ minúsculas + guiones bajos
✔️ sin acentos ni símbolos raros
✔️ listo para usar con dplyr y ggplot2

🔗 https://sfirke.github.io/janitor/reference/clean_names.html
✍️ Sam Firke

#RStats #Rtips #DataCleaning #janitor #cienciadedatos

Cleans names of an object (usually a data.frame). — clean_names

Resulting names are unique and consist only of the _ character, numbers, and letters. Capitalization preferences can be specified using the case parameter. Accented characters are transliterated to ASCII. For example, an "o" with a German umlaut over it becomes "o", and the Spanish character "enye" becomes "n". This function takes and returns a data.frame, for ease of piping with %>%. For the underlying function that works on a character vector of names, see make_clean_names(). clean_names relies on the versatile function snakecase::to_any_case(), which accepts many arguments. See that function's documentation for ideas on getting the most out of clean_names. A few examples are included below. A common issue is that the micro/mu symbol is replaced by "m" instead of "u". The replacement with "m" is more correct when doing Greek-to-ASCII transliteration but less correct when doing scientific data-to-ASCII transliteration. A warning will be generated if the "m" replacement occurs. To replace with "u", please add the argument replace=janitor:::mu_to_u which is a character vector mapping all known mu or micro Unicode code points (characters) to "u".

🧩 [R-TIP] – Tablas interactivas en R con {reactable}

Crea tablas HTML dinámicas, ordenables y visuales en pocas líneas.
✔️ Ideal para dashboards con Shiny o Quarto
✔️ Personalizá estilos, agregá barras, tooltips y más.

🔗 https://glin.github.io/reactable/

#RStats #DataViz #Rtips

[PAQUETE] - 🧹 ¿Querés que tu código en R sea más limpio y profesional?

Te dejamos dos paquetes que no podés dejar de revisar:

🔍 {lintr} analiza tu código y detecta errores de sintaxis o estilo según la guía tidyverse.
🎨 {styler} lo reformatea automáticamente para que siga esas buenas prácticas.
• Info:
https://lintr.r-lib.org
https://styler.r-lib.org

#RStats #DataScience #CódigoLimpio #EstiloR #lintr #styler #rtips @rstats

A Linter for R Code

Checks adherence to a given style, syntax errors and possible semantic issues. Supports on the fly checking of R code edited with RStudio IDE, Emacs, Vim, Sublime Text, Atom and Visual Studio Code.

For years I used #R and struggled with Windows path issues—turns out there’s a built-in function I never knew about: normalizePath() in base R! It converts file paths to canonical form & handles slash/backslash confusion.
https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/normalizePath
#rstats #Rtips #Windows
normalizePath function - RDocumentation

<p>Convert file paths to canonical form for the platform, to display them in a user-understandable form and so that relative and absolute paths can be compared.</p>

[PAQUETE 📦] - 🧠 {ellmer}: Lleva los LLMs a R

Integra modelos como OpenAI, Claude y Gemini en R de forma fácil

✨ Características:
• 🔗 Compatible con múltiples proveedores
• 🛠️ Llama funciones dinámicas
• 📊 Extrae datos estructurados
• 💬 Conversaciones contextuales

➕ellmer.tidyverse.org

#RStats @rstats #rtips