Kaija Gahm
  • Home
  • Talks
  • Blog: woodpeckR
  • Projects
  • Artwork
Categories
All (15)
Posit (1)
R (15)
RStudio (1)
conference (1)
shiny (2)
tidyverse (2)

woodpeckR: coding, one acorn at a time

A Semi-Automated Process for Converting Slides to a Blog Post in RMarkdown
R
Recently, I adapted slides from one of my talks into a blog post format, with each slide’s narration transcribed below it. In my experience, people don’t usually post slides…
Kaija Gahm
Oct 14, 2021

greenT part 2: Behind the app
R
shiny
A more detailed explanation of some of the code that makes the greenT app work.
Kaija Gahm
May 13, 2021

greenT: Exploring grapheme-color synesthesia
R
shiny
An introduction to a Shiny app I built to show friends the inner workings of my brain–and some musings on my experience learning Shiny this year.
Kaija Gahm
May 9, 2021

%$%: upping your pipe game
R
I love the magrittr/dplyr pipe: %>%. But it’s meant to work with tidyverse functions, and it doesn’t always work well with base R functions that take a single data frame…
Kaija Gahm
Feb 10, 2020

Some lessons from rstudio::conf 2020
R
RStudio
conference
Posit
Some of my thoughts about R and the R community after attending the 2020 rstudio::conf in San Francisco.
Kaija Gahm
Feb 3, 2020

If ifelse() had more if’s (case_when(), part 2)
R
tidyverse
In which I learn how to make case_when() behave like a true if/else, including the else part. What happens when you only want to assign particular outcomes to a few cases…
Kaija Gahm
Nov 22, 2019

Loading packages efficiently
R
A trick I sometimes use to load a whole bunch of packages for every script in a project, while saving myself some typing. (Preview image from…
Kaija Gahm
Oct 12, 2019

If ifelse() had more if’s (case_when(), part 1)
R
tidyverse
In which I discover dplyr’s case_when() function, a vectorized version of ifelse().
Kaija Gahm
Oct 11, 2019

Initializing an empty list
R
When you’re using a for loop to fill up a list, sometimes it’s a good idea to initialize the list ahead of time, with the right number of elements but with no data. But…
Kaija Gahm
Sep 13, 2019

prop.table()
R
Making a frequency table with proportions instead of counts. Preview image from https://twitter.com/lyric_rep/status/1010594530435846144.
Kaija Gahm
Jul 22, 2018
 
Automatically show output
R
A trick to show the output of an R expression when it wouldn’t otherwise print to the console.
Kaija Gahm
Jul 22, 2018

with()
R
A brief introduction to the with() function
Kaija Gahm
Jul 20, 2018
 
Changing individual column names
R
How to rename individual columns in a data frame, based on the previous names and without using previous names.
Kaija Gahm
Jul 11, 2018
 
The %notin% operator
R
Why is negating %in% such a pain?
Kaija Gahm
Jul 8, 2018

Where are my NA’s?
R
I wrote a function to summarize how many NA’s are in each column of a data frame. Preview image by Allison Horst, https://github.com/allisonhorst.
Kaija Gahm
Jul 6, 2018
No matching items
  • Copyright 2024, Kaija Gahm