May 2019

Advice for the Beginner Programmer teaser image
R is a popular programming language for data science. It was designed for statistical computations and visuals, which may be why it is so popular among researchers. This semester I had my first experience with it.  In the research lab I worked in, I was tasked with a data visualization project using R. As an undergrad I took some classes that dealt with programming, but I had never used this programming language.

Going into the research, before I saw the data I would be working with, I assumed my skills would be transferable. Looking back now, to some degree they were but not entirely. Here’s the thing about computer programming: it’s a language. While languages may each share a common foundation, they are very different. Learning R was a mental exercise for me. At times it was easy, but other times it was frustrating. I knew what I wanted to do, and how in another coding language I could accomplish that, but then I would gaze at the R script in confusion of where to begin.

In R, packages are the heavy lifters of the program. Many of them come with the language and others can be installed along the way. These packages are groups of compressed code that can carry out numerous functions. Being able to use packages to your advantage is a powerful tool.

If you are starting to use R or are interested in learning I have some advice.

1. Prepare yourself. I wish before I had started that I read more about R and understood the language better. If you can, sign up to take a course. While learning programming on your own is possible, it is helpful to have some knowledge of the subject to work from. Reading as much as you can in preparation can decrease the confusion you may encounter has you get into the nuances of the language. My project focused heavily on statistical calculations, some terms I knew, but many I was learning for the first time. Truly understanding the ideas you are working with can make the process much easier.

2. Watch tutorials. Watching instructive videos is a great way to learn new concepts especially when you are not in the classroom with a teacher to help. When searching through YouTube I found many tutorials that were helpful. Listening and watching someone else work out codes made it easier to troubleshoot the errors in my own code.

3. Ask for help. It is easy to get stuck in the trenches of variables, loops, and other programming operations. Don’t be afraid to reach out for help. Find people that are experienced in coding and learn from them.
 
The website for downloading R:https://www.r-project.org/

An online instruction site for understanding concepts: https://www.datacamp.com/

A forum where you can find answers to coding questions: https://stackoverflow.com/

---Kalifa Stringfield
Kalifa Stringfield is a Masters student in the College of Engineering

Related Content

Explore Grad Aggieland

News

Texas A&M Honors Graduate and Professional Students During Graduate Community of Scholars Week 

Each year, Texas A&M University joins institutions nationwide in recognizing Graduate and Professional Student Appreciation Week (April 7-11) - a time to honor the dedication, contributions, and impact of graduate and professional students on research, teaching, and the broader university community. 

View All News
Blog

My Final Boss of Spring 2025

Have you ever thought of a part of your personality as a final boss to conquer? I have not until recently when I started realizing how my harsh inner critic was trying to take over my graduate student experience. What does my final boss of Spring 2025 look like?

View All Blogs
Defense Announcement

Advanced Bioactive Materials for Skin Regeneration

View All Defense
Announcements