Brian Helsel

@bchelsel.bsky.social

Christ follower, husband, father, Assistant Professor, #RStats developer, & physical activity epidemiologist focusing on Down syndrome and Alzheimer’s disease.

A development milestone that I'm proud to share is that we've now generated over 200 research disclosure reports for individuals with Down syndrome and their families! Each report is automatically generated through an R package (with Quarto) I've been developing over the past few years. #RStats

Bild

I’m excited to meet this cohort of scientists committed to learning R. I’m especially looking forward to the diverse research interests this group will bring and seeing how participants use R to solve real-world problems in lifestyle and brain health research. #RStats

Brian Helsel@bchelsel.bsky.social · 3mo ago

Are you an early-career scientist working in lifestyle and brain health research? Learning R has helped me build practical, career-advancing programming skills that have strengthened my research. I'm leading a small group through the R for Data Science and Advanced R books this summer. Come join us!

I’ve been experimenting with embedding a Shiny app directly inside my Quarto presentations. Instead of moving through static slides, the audience can now actively engage with data in real time. It changes the dynamic from “here’s what I found” to “let’s explore this together.” #RStats #Quarto

Are you an early-career scientist working in lifestyle and brain health research? Learning R has helped me build practical, career-advancing programming skills that have strengthened my research. I'm leading a small group through the R for Data Science and Advanced R books this summer. Come join us!

Bild

Recently had a great experience using {rlang} in #RStats. I had over 50 equations for scoring cognitive tests that needed checking across hundreds of participants. Instead of writing checks for each one, parse_expr + eval_tidy let me map through equations and flag discrepancies. A simple example:

Bild

# tweak to avoid running both branches `%?%` <- function(test, yes) { t <- function() test y <- function() yes list(test = t, yes = y) } `%:%` <- function(lhs, no) { if (lhs$t()) lhs$y() else no } if (TRUE) 1 else 0 if (FALSE) stop() else 0 TRUE %?% 1 %:% stop() FALSE %?% stop() %:% 0

Brian Helsel@bchelsel.bsky.social · 6mo ago

R is a flexible programming language. You can even shape function syntax to resemble other languages. Here is an example of a ternary style operator with infix functions—the same logic as ifelse. Is this something you need? Probably not. But it is fun to explore these ideas within your code. #RStats

R is a flexible programming language. You can even shape function syntax to resemble other languages. Here is an example of a ternary style operator with infix functions—the same logic as ifelse. Is this something you need? Probably not. But it is fun to explore these ideas within your code. #RStats

Bild

One of my favorite parts of R is that there are many paths to the same result. A simple task can be written with a for loop, the apply family, purrr, vectorized base R, or even Rcpp. The real skill isn’t memorizing syntax—it’s knowing when to choose each option. #RStats

An image of R code that shows different ways to the mean of a squared vector. The code uses a for loop, the apply family, purrr package, vectorized base R and a C++ function.

I’ve been experimenting with tidyverse and the idea of an interactive console for data exploration. This would let you quickly explore, filter, and summarize data without writing code. The idea is to support a fast, conversational-style data workflow, especially useful for early exploration. #RStats

I found that I was rewriting the same R function to read in data for a research study. A function factory returns a function and allows you to reuse logic, creating consistent readers that still allow custom processing. Less duplication, clearer intent, and much easier to extend. #rstats

R Code Illustrating a Function Factory Example

Truly a unique and innovative position! I don’t think I’ve seen a Data Science & AI focus within a Kinesiology program but it will be interesting to read the research that results from these hires.

David Conroy@conroylab.bsky.social · 8mo ago

Join an emerging national center of excellence in Data Science & Artificial Intelligence in Kinesiology at a great university. @umkines.bsky.social has multiple open-rank faculty positions available. Join us in using advanced technology to challenge the idle state! Details at myumi.ch/8qnnD

I’m always amazed by what you can do with maps in R. They’re not part of my everyday workflow, but I’ve started learning more and want to dive deeper.

Kyle Walker@kylewalker.bsky.social · 8mo ago

Visualizing US electric power transmission lines for Day 26 of #30DayMapChallenge: Transport A few mapgl tips in this one: - To achieve a "glow effect" for the lines, first add a blurred line using the `line_blur` parameter then add the same layer over it as an opaque line

Dr. Amy Bodde, PhD, MPH and I were recently awarded the Frontiers CTSI Integrating Special Populations Trailblazer Award to support our team’s work with the Community Health Improvement Program for Intellectual Disabilities (CHIP-ID). Through this project, we will translate evidence from clinical…

I enjoyed presenting at the 2025 annual meeting for the National Down Syndrome Congress this year. The energy and excitement at this conference is unmatched! Presenting for families and self-advocates was an honor.

Bild