- Laura Briggs
- This repository contains an R script (or file) designed for cleaning and preparing a dataset used in a workshop on creating a data pre-analysis plan using Canva.
- README.md file
- R script ("setup.R"): R script for connecting R to GitHub.
- R script ("20240124_nero_offspring_analysis.R"): Contains code for cleaning and pre-processing the dataset to prepare it for analysis.
The R file was created on:
- 24 January 2024
- This R script accompanied a 30-minute hands-on workshop where participants learned to create a robust data pre-analysis plan using Canva.
- The workshop included a completed example using an authentic canine health dataset, highlighting the benefits of structured pre-analysis planning and improving data analysis decision making skills.
By the end of this workshop, participants were able to:
- Understand the advantages of creating a data pre-analysis plan in Canva.
- Identify the six sections of a robust data pre-analysis plan.
- Know how to add and read comments on an existing data pre-analysis plan in Canva.
- Recognize when and how to integrate a data pre-analysis plan into their own projects.
- Leave with an editable version of the example discussed in the workshop that can be modified to suit their own work.
These outcomes guided the design and implementation of the R script provided in this repository, ensuring it meets the educational goals of the workshop.
Visit A Data Pre-Analysis Plan Using Canva to access the accompanying workshop resources including:
- Instructions for the workshop
- Presentation slides
- Canva whiteboard
- Canine health dataset featuring offspring data from Nero vom Buchonia, a male German Shepherd Dog
The R script was created using:
- R Version: 4.4.0 (2024-04-24)
- Ensure you have the necessary R packages installed to execute the script.
To use the R script:
-
Download:
- Go to analysis-plan-canva.
- Click
Code
and thenDownload ZIP
.
-
Setup:
- Extract the ZIP file to your computer.
-
Run in RStudio:
- Open RStudio and create a New Project.
- Select New RStudio Project.
- Navigate to the extracted file's directory.
- Open
20240124_nero_offspring_analysis.R
. - Run the script to execute the data cleaning and analysis procedures discussed in the workshop.
-
Explore Additional Resources:
- Visit A Data Pre-Analysis Plan Using Canva for more resources related to creating a data pre-analysis plan using Canva.
For more details, refer to the detailed comments in the script file.
-
Comprehensive Data Processing Example: The Canva whiteboard walks through processing each column of a German Shepherd Dog health dataset, detailing essential steps such as using regular expressions for data separation and converting columns to factors like sex and colour. The included R script executes these steps.
-
Normalization of Orthopedic Rating Systems: Demonstrates how to normalize hip and elbow ratings across different North American and German rating systems, ensuring consistency and comparability.
-
Educational Focus: Detailed comments for each line of code in the R file explain the reasoning and methodology behind data cleaning and preparation.
-
Practical Application: Provides a hands-on approach to data analysis preparation, showing how to scrape data, transform raw data into a structured format suitable for analysis, and include functions for simple counts and basic data summaries.
- If you have used this script in your own projects, I would love to hear from you! Please contact me to share your experience or to provide feedback.
- Thank you to Jennifer Lee for providing the canine health data to support student learning. Ms. Lee is the owner of Nero vom Buchonia.
- This project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
- For questions, feedback, or further information about the workshop or this repository, please contact me.