About this resource

    Type of resources
    Module
    Education level(s)
    Graduate / Professional
    Primary user(s)
    student, teacher
    Subject area(s)
    Computer Science, Information Science, Measurement and Data
    Language(s)
    English
    Cluster
    Transparency and Reproducibility in Computation and Analysis
    Last updated
    29 October 2026

    R for Reproducible Scientific Analysis

    Open this resource

    Level Graduate / Professional · For student, teacher · Language English

    Abstract

    This lesson in part of Software Carpentry workshop and teach novice programmers to write modular code and best practices for using R for data analysis. an introduction to R for non-programmers using gapminder data The goal of this lesson is to teach novice programmers to write modular code and best practices for using R for data analysis. R is commonly used in many scientific disciplines for statistical analysis and its array of third-party packages. We find that many scientists who come to Software Carpentry workshops use R and want to learn more. The emphasis of these materials is to give attendees a strong foundation in the fundamentals of R, and to teach best practices for scientific computing: breaking down analyses into modular units, task automation, and encapsulation. Note that this workshop will focus on teaching the fundamentals of the programming language R, and will not teach statistical analysis. The lesson contains more material than can be taught in a day. The instructor notes page has some suggested lesson plans suitable for a one or half day workshop. A variety of third party packages are used throughout this workshop. These are not necessarily the best, nor are they comprehensive, but they are packages we find useful, and have been chosen primarily for their usability.

    Keywords Analysis · Data · Education · Open Scholarship Tools and Technologies · R · Reproducibility · Research Data Management Tools · Researchers