Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
library(stringr)
buttons <- list(
  
  function(n) if (n == 0) 7 else n * 10 + 7,
  
  function(n) n * 5,
  
  function(n) {
    as.character(n) |>
      str_replace_all("1", "9") |>
      as.integer()
  },
  
  function(n) n %/% 3,
  
  function(n) {
    as.integer(as.character(as.octmode(n)))
  },
  
  function(n) {
    as.character(n) |>
      str_replace_all("0", "5") |>
      as.integer()
  },
  
  function(n) if (n == 0) 9 else n * 10 + 9,
  
  function(n) n * 9,
  
  function(n) if (n < 10) 0 else n %/% 10
)
# all values within 3 is tractable
solve_microwave_part1 <- function() {
  
  depth0 <- 0
  
  depth1 <-
    vapply(
      buttons,
      \(button) button(0),
      numeric(1)
    ) |>
    unique()
  
  depth2 <-
    unlist(
      lapply(
        depth1,
        \(value)
        vapply(
          buttons,
          \(button) button(value),
          numeric(1)
        )
      ),
      use.names = FALSE
    ) |>
    unique()
  
  depth3 <-
    unlist(
      lapply(
        depth2,
        \(value)
        vapply(
          buttons,
          \(button) button(value),
          numeric(1)
        )
      ),
      use.names = FALSE
    ) |>
    unique()
  
  reachable <-
    c(depth0, depth1, depth2, depth3) |>
    unique()
  
  sum(reachable)
}
solve_microwave_part1()
Summary card showing my TidyTuesday stats for 2026 so far. 48 charts. 4 datasets. 26 packages used once. tidyverse most used.
Photo, no description
Blog post image
Instats seminar: Applied Spatial Statistics Using R
library(tidyplots)

new_color_scheme(
  c("#085578","#538085","#faf1e2","#e3baaa","#e47e8c","#ffaa6a"), 
  name = "My custom color scheme")
R console card titled "Clear messages. Helpful errors.", with the RRatepol hexagon logo on a light pink background. First, estimate_roc() is called with smooth_n_points = 4 and stops with: Error in estimate_roc(): smooth_n_points must be odd, not 4. Then a run with moving-window bins and 10 randomisation runs prints a red header "RRatepol started" with the date and time, information lines on the Working Units (500-year bins and 5 shifts of the window), the random bin selection and the time standardisation (dissimilarity per 500 years), and a green tick with "RRatepol finished" and the run time. A warning follows: bin_selection is "random" with only 10 runs; increase rand to at least 100. A red badge reads "Now with {cli}".
R code card titled "Are 1,000 runs enough?", with the RRatepol hexagon logo on a light pink background. The code runs estimate_roc() on the first record of example_data with age uncertainty, Shepard's 5-term filter, chi-squared dissimilarity, rarefaction to 150 grains, 1,000 randomisation runs on several cores and seed = 900723, then check_rand() on the result. It prints: Monte Carlo error assessed in 62 of 62 Working Units; with 1000 runs, it exceeds 10 % of the 95 % interval width in 14 of them; recommended number of randomisation runs: 1300. A large red badge repeats "Recommended: 1300".
Announcement card on a light pink background. Left: the RRatepol hexagon logo, the title "RRatepol 1.4.0 is out!", the line "Rate of change in community time series, such as fossil pollen, with its uncertainty and peak points", and three labels: "Easier to use", "Reproducible" and "Robust, from laptop to HPC". Right: a white panel titled "How RRatepol estimates rate of change" with the workflow of the package: optional smoothing of the assemblage data and creation of time bins; then, in each single run, selection of one time series from the age uncertainties, subsetting of levels in each bin, standardisation of abundance in each Working Unit, calculation of RoC between adjacent Working Units and a summary of the run; finally, repeating the calculation many times (rand), summarising the results of all runs, and detecting peak points.
Blog post image
Example of a table in APA style (confirmatory factor analysis)
Load more