Julian Ricardo's Avatar

Julian Ricardo

@booolio.bsky.social

Data carpenter / carpinteiro de dados Climate & energy nerd Cat dad

43 Followers  |  447 Following  |  29 Posts  |  Joined: 15.11.2024  |  1.9788

Latest posts by booolio.bsky.social on Bluesky

Preview
GitHub - Nixtla/fpp3-python: Forecasting: principles and practice in python Forecasting: principles and practice in python. Contribute to Nixtla/fpp3-python development by creating an account on GitHub.

Good shout! In case somebody comes looking for it, Nixtla's got one: github.com/Nixtla/fpp3-...

17.12.2024 19:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

πŸ“Œ

15.12.2024 19:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Tidy Interface to data.table A tidy interface to data.table, giving users the speed of data.table while using tidyverse-like syntax.

YMMV, but I am a faithful of the tidytable package for expressing things in a tidyverse style with data.table under the hood. Perhaps not all that different from the dtplyr suggestion here

markfairbanks.github.io/tidytable/

14.12.2024 20:00 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A scatterplot of the gapminder dataset, showing GDP per capita on the x-axis and life expectancy on the y-axis. The points are sized by population, which has a legend with overlapping circles.

A scatterplot of the gapminder dataset, showing GDP per capita on the x-axis and life expectancy on the y-axis. The points are sized by population, which has a legend with overlapping circles.

A correlation heatmap of the mtcars dataset. Car names on the left are decorated with a dendrogram. The bottom cells also have a dendrogram, whereas the labels are on the top.

A correlation heatmap of the mtcars dataset. Car names on the left are decorated with a dendrogram. The bottom cells also have a dendrogram, whereas the labels are on the top.

Hi folks! I know it is the weekend, but I'd like to quickly announance an update to {legendry} version 0.2.0:

teunbrand.github.io/teunbrand_bl...

#rstats #ggplot2

14.12.2024 12:02 β€” πŸ‘ 93    πŸ” 19    πŸ’¬ 5    πŸ“Œ 0
Preview
GitHub - RusselWebber/xlDuckDb: Use DuckDB within Excel with the xlDuckDb addin Use DuckDB within Excel with the xlDuckDb addin. Contribute to RusselWebber/xlDuckDb development by creating an account on GitHub.

For all the folks at the crossroads of Excel & DuckDB, this just went open source

09.12.2024 02:57 β€” πŸ‘ 70    πŸ” 13    πŸ’¬ 4    πŸ“Œ 2
Preview
How to provide alternative figures for HTML (.gif) and PDF (.png) versions of a book? Β· quarto-dev quarto-cli Β· Discussion #8172 Description Using Quarto: 1.3.450 In a book project I have several animated .gif images for the HTML version, but I need to replace these with static .png images for the LaTeX / PDF version. Follow...

#rstats #quarto
Do you want to use different versions of a figure for HTML, PDF for online vs. print, perhaps an animated GIF for the former, but a static image for the latter?

Here's a discussion of this and solutions,
github.com/quarto-dev/q...

05.12.2024 20:59 β€” πŸ‘ 10    πŸ” 4    πŸ’¬ 0    πŸ“Œ 0

anybody got cheat codes for finding #rstats jobs they're willing to share?

05.12.2024 20:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

s/o to @acastroaraujo.bsky.social for sharing a recursive fn, which I really liked
bsky.app/profile/acas...

05.12.2024 18:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Code in R solving Advent of Code day 5 part 1

Code in R solving Advent of Code day 5 part 1

Day 5 of #AdventofCode went smoother for me than yesterday, but I struggled with part 2 until learning from others' solutions

05.12.2024 18:25 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

deep dive? omw

04.12.2024 17:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
a man wearing sunglasses says " you haven t answered my question " ALT: a man wearing sunglasses says " you haven t answered my question "

Learning just how rusty I am with matrices today.... #AdventofCode #rstats

04.12.2024 16:34 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Lunch & Learn: An Introduction to Survival Analysis in R, Tue, Dec 17, 2024, 12:00 PM | Meetup This talk will provide a general introduction to survival analysis in R. After introducing the concept of and need for survival analysis methods, we will first discuss how

R-Ladies Philly πŸ”” is thrilled to have @zabore.bsky.social ✨ present "An Introduction to Survival Analysis in R" on Tues, Dec 17. We hope you can join us! πŸ€— https://buff.ly/3OAUxhZ #rstats #rladies

03.12.2024 20:01 β€” πŸ‘ 32    πŸ” 11    πŸ’¬ 0    πŸ“Œ 0

why the calc_muls function? 🀷

03.12.2024 19:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
R-Universe Named R Consortium Top-Level Project We're excited to announce R-Universe has been named the R-Consortium's newest Top-Level Project.

Excited and grateful that R-Universe is R Consortium's newest top-level project! This means sustained support for @rOpenSci.hachyderm.io.ap.brid.gy's platform for discovery and publishing of #rstats packages. Hats off to @jeroenooms.bsky.social for his leadership!

ropensci.org/blog/2024/12...

03.12.2024 16:42 β€” πŸ‘ 72    πŸ” 28    πŸ’¬ 0    πŸ“Œ 3
Code in R answering day 3 of advent of code

Code in R answering day 3 of advent of code

Day 2 of #AdventofCode stumped me for a while, but thankfully I was able to troubleshoot with others' solutions on here.

Moving right along, here's my attempt at day 3 #rstats

03.12.2024 18:33 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Advent of Code: Day 1 – Julian Ricardo

posted about it here: jdnricardo.com/posts/advent...

03.12.2024 03:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Advent of Code: Day 1 – Julian Ricardo

posted about it here: jdnricardo.com/posts/advent...

03.12.2024 03:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Code in R to answer day 1 part 2 of the Advent of Code

Code in R to answer day 1 part 2 of the Advent of Code

I used the collapse package to get my answer for day 1, part 2 #rstats #AdventofCode

03.12.2024 00:11 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0

I just completed "Historian Hysteria" - Day 1 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/1

03.12.2024 00:06 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Code in R to answer Day 1 of the Advent of Code 2024

Code in R to answer Day 1 of the Advent of Code 2024

Catching up on Advent of Code with my day 1 solution #rstats

02.12.2024 21:20 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Screenshot of the following code 

arc_read <- function(
    url,
    col_names = TRUE,
    col_select = NULL,
    n_max = Inf,
    name_repair = "unique",
    crs = NULL,
    ...,
    fields = NULL,
    alias = c("drop", "label", "replace"),
    token = arc_token()
) {

  # argument validation
  check_string(url, allow_empty = FALSE)
  check_string(alias, allow_empty = FALSE)
  check_character(fields, allow_null = TRUE)
  check_character(col_select, allow_null = TRUE)

  is_valid_col_names_arg <- rlang::is_logical(col_names, 1) ||
    rlang::is_null(col_names) ||
    rlang::is_character(col_names)

  if (!is_valid_col_names_arg) {
    cli::cli_abort(
      "{.arg col_names} must be one of {.val TRUE}, {.val FALSE},\\
      {.val NULL}, or a character vector of the new column names"
    )
  }

  if (!rlang::is_integerish(n_max, 1)) {
    cli::cli_abort("{.arg n_max} must be a scalar integer.")
  }

Screenshot of the following code arc_read <- function( url, col_names = TRUE, col_select = NULL, n_max = Inf, name_repair = "unique", crs = NULL, ..., fields = NULL, alias = c("drop", "label", "replace"), token = arc_token() ) { # argument validation check_string(url, allow_empty = FALSE) check_string(alias, allow_empty = FALSE) check_character(fields, allow_null = TRUE) check_character(col_select, allow_null = TRUE) is_valid_col_names_arg <- rlang::is_logical(col_names, 1) || rlang::is_null(col_names) || rlang::is_character(col_names) if (!is_valid_col_names_arg) { cli::cli_abort( "{.arg col_names} must be one of {.val TRUE}, {.val FALSE},\\ {.val NULL}, or a character vector of the new column names" ) } if (!rlang::is_integerish(n_max, 1)) { cli::cli_abort("{.arg n_max} must be a scalar integer.") }

I now dedicate the first 20+ lines of my user facing functions to argument validation.

I cannot emphasize how helpful this is for preventing bugs.

Read about r-lib standalone check: josiahparry.com/posts/2024-0...
#rstats

26.11.2024 19:34 β€” πŸ‘ 83    πŸ” 17    πŸ’¬ 5    πŸ“Œ 1

giving this a try, but pal keeps prompting me for an anthropic API key after I save a fake one to my .Renviron. did you run into this too?

24.11.2024 14:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
two cartoon characters are standing next to each other in a room with a green light behind them Alt: two cartoon characters are standing next to each other in a room with a green light behind them
24.11.2024 13:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Screenshot of a y-axis of a graph showing that large dollar amounts are shown in human friendly units, like five hundred million dollars and one billion dollars

Screenshot of a y-axis of a graph showing that large dollar amounts are shown in human friendly units, like five hundred million dollars and one billion dollars

just remembered this scales R package function that quickly makes your large dollar amounts into human friendly units, and it takes care of those changing units from say millions to billions #RStats

scales::label_dollar(scale_cut = cut_short_scale()

reference: scales.r-lib.org/reference/la...

23.11.2024 03:39 β€” πŸ‘ 60    πŸ” 7    πŸ’¬ 1    πŸ“Œ 2
The ultimate guide to starting a Quarto blog – Albert Rapp This blog post is an in-depth guide on how to start blogging with Quarto.

Yessssssss! I took the plunge a few months ago and found @albertrapp.bsky.social's guide very helpful. a couple years old now so maybe cross-check with another resource? albert-rapp.de/posts/13_qua...

22.11.2024 16:09 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Book cover of the book 'Exploring complex survey data analysis using R', showing a light blue background with a hand-drawn map showing mountains, houses, roads and the sea.

Book cover of the book 'Exploring complex survey data analysis using R', showing a light blue background with a hand-drawn map showing mountains, houses, roads and the sea.

To celebrate this gem of a book by @statsteph.bsky.social, @ivelasq3.bsky.social and Rebecca Powell on complex survey data with #RStats and the #tidyverse, we are giving away one copy to a lucky winner. To enter, re-post this and follow me by Nov 24. Not affiliated with bsky.

21.11.2024 09:09 β€” πŸ‘ 111    πŸ” 87    πŸ’¬ 2    πŸ“Œ 4

"render_snapshot" works just fine, but when I render the above using "render_highquality", I get all those artifacts 🀷

22.11.2024 14:23 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Rendered image of forest cover in Portugal, with artifacts from the rendering where there should be negative space

Rendered image of forest cover in Portugal, with artifacts from the rendering where there should be negative space

anybody handy with #rstats or #rayshader able to diagnose what's going on here? looks cool but...

22.11.2024 14:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

The brand new `legendry` package by @teunbrand.bsky.social takes ggplots2 guides to the next level 🀩

teunbrand.github.io/teunbrand_bl...

22.11.2024 03:44 β€” πŸ‘ 235    πŸ” 55    πŸ’¬ 17    πŸ“Œ 8

@booolio is following 20 prominent accounts