Bridging the Gap to Statistical Programming Languages

I provide substantial support to students to get them familiar and functional in R. Initial code files, videos, class time, and office hours dedicated to improving students’ ability to conduct statistical analyses in R. It has taken this effort to learn a programming language because it truly is a different language. If only there was a tool available to translate common terms into R code. 

Over the past year, I began to hear about the ability of ChatGPT, Gemini, and other generative AI tools to generate code in a variety of programming languages. I began to experiment with using these generative AI tools to help write R code for a variety of my own research tasks including data cleaning, data management, data visualization, and a variety of analyses. Rather than sorting through various blog posts and discussion boards, generative AI proved to be an incredibly efficient tool to help me code in R.

This semester in my Advanced Statistics class I demonstrated using Gemini to aid in the use of R coding. Specifically, I showed students how Gemini could be used to (a) interpret and explain the R code I provided, (b) explain and provide guidance for any errors or warnings students received while coding in R, and (c) generate R code based on specific prompts. These three capabilities help students move from new and novice users to functional programmers. R is an incredibly powerful tool for educational researchers, one that has often been inaccessible. With the help of generative AI, students are better equipped to bridge this gap and access the newest and most innovative analytic tools.