I love programming and data and sharing knowledge.


Latest post

Recent Posts

More Posts

Here is one way to generate dynamic html for your Shiny app from a reactive data frame using my favorite tidyverse package purrr and specifically the pmap function. I’ve created a shiny app that uses the starwars dataset included with dplyr. The user selects a species from a drop down. Then for each character who belongs to that species some sweet html is generated that displays their name in a <h1> tag, their home planet in a <h2> tag and their species in a <h3> tag.

CONTINUE READING

The Good Place is such a great show. I recently created an API client package called goodshirt to bring a tast of The Good Place to our Good place, the R console.

ascii image of a cat

ascii image of a cat

CONTINUE READING

I recently created a one function package called bortles. This post is about inspiration and the benefits of creating silly packages. The inspiration came from many sources.

CONTINUE READING

tldr: I haven’t completed this post yet its WIP - I’ll tweet when it’s done.

it’s taken a long time to write about my experience at user!2018 in Brisbane. Partly , i was having some problems with my blog not building on Netlify that I couldnt resolve. also i fell into a bit of a post conference funk.

CONTINUE READING

I found a cool use for purrr’s map_if function recently that both felt wizardly and helped me better understand when to use map_if. Problem: I had a list called params with 3 items of different types start_date - a Date end_date - a Date confidence_interval - a Numeric params <- list( start_date = as.Date("2015-01-01"), end_date = as.Date("2015-12-31"), confidence_interval = 0.8 ) params ## $start_date ## [1] "2015-01-01" ## ## $end_date ## [1] "2015-12-31" ## ## $confidence_interval ## [1] 0.

CONTINUE READING