R for Sport Science: Free Load Monitoring Code

Learn how to code in R with sport science data. Utilize this R code to analyze, monitor, and visualize athlete workload data. This script processes raw data, generates statistical summaries, and creates insightful visualizations of workload trends.

Contents

Key Features:

1. Streamlined Setup

  • Automatically installs and loads essential R packages (tidyverse, readxl, etc.) for seamless execution.

  • Supports automated workflows with reusable and modifiable code.

2. Data Import & Cleaning

  • Imports CSV data directly from Strava exports.

  • Filters and cleans data, focusing on running activities with valid distances.

  • Handles time formats.

3. Descriptive Statistics

  • Computes a range of statistics (mean, median, standard deviation, skewness, etc.) for metrics such as speed, heart rate, and time.

  • Presents results in a styled, professional table using the kableExtra package for easy interpretation.

4. Visualizations

  • Distribution Plot: Visualizes the distribution of running metrics using a raincloud plot for individual metrics.

  • Workload Analysis: Tracks weekly running distance, 4-week moving averages, and 12-week variability bands with clear annotations.

5. Workload Monitoring

  • Analyzes long-term trends with rolling averages and variability measures.

  • Generates a workload chart to highlight weekly performance, variability, and short-term trends.

Statistical Modeling and Data Delivery for Sport Science - Annotated.R
strava_full_data.csv

Learn R with Sport Science Data in 5 Weeks!

R for Sport Science combines 5+ years of sport science experience at the highest level into a 5 week online course.

I will guide you with step-by-step video tutorials, teaching you what sport professionals actually use in R. Commit just 5 weeks and you'll gain all the coding skills sport scientists need.