2024-11-26-r-intro

Introduction to R and R Studio (Nov 2024)

https://github.com/bham-carpentries/2024-11-26-r-intro

Science Score: 65.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization bham-carpentries has institutional domain (intranet.birmingham.ac.uk)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Introduction to R and R Studio (Nov 2024)

Basic Info
Statistics
  • Stars: 0
  • Watchers: 9
  • Forks: 0
  • Open Issues: 3
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

Introduction to R

This lesson is an Introduction to R and R Studio for researchers at the University of Birmingham (UK) using the [Palmer Penguins][palmerpenguinspkg] data and the [tidyverse][tidyversepkg] suit of packages.

A rendered version of the course notes can be found at:

Overview

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.

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 focuses on the fundamentals of the programming language R, and not on statistical analysis.

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.

Changes from R for Reproducible Scientific Analysis

This course is based on the CC-BY-4.0 licensed Software Carpentry course [R for Reproducible Scientific Analysis][rgapminder], and has been abridged and tailored to meet the needs of researchers at the University of Birmingham.

The main changes are:

  • We reuse content from the following core episodes from the original course: (i) Introduction to R and R Studio (E1), (ii) Project Management with RStudio (E2) (iii) Data Structures (E4) (iv) Exploring Data Frames (E5) (v) Data Frame Manipulation with Dplyr (E12) and (vi) Creating Publication Quality Graphics with GGplot2 (E8) with some additional material from Subsetting Data (E6) and Vectorisation (E9).
  • We cover vectors and lists but have removed material on other data structures such as factors and matrices
  • We do not use git or GitHub during the course and signpost researchers to University of Birmingham's Advanced Research Computing's git course.
  • We have updated the episode to use the [Palmer Penguins][palmerpenguinspkg] dataset rather than [gapminder][].
  • Setup instructions have been tailored to University of Birmingham infrastructure
  • Episode 4 "Seeking Help" is reused with minor adaptations from ["Data Analysis using R"][daur] which in turn was also adapted from [R for Reproducible Scientific Analysis][rgapminder] by David Mawdsley. Small sectiond of "Loading data into R" from ["Data Analysis using R"][daur] are re-used in Episode 5 "Manipulating Tibbles With Dplyr".

A rendered version of the original Software Carpentry lesson can be found at: https://swcarpentry.github.io/r-novice-gapminder,

Data

This lesson uses the [Palmer Penguins][palmerpenguinspkg] dataset. The original palmer penguins datasets can be found in folder episodes/data as files penguins_raw.csv and the simplified version penguins.csv.

License

Data are re-used untder CC-0 license in accordance with the Palmer Station LTER Data Policy and the LTER Data Access Policy for Type I data.

Teaching Dataset

This course uses the file penguins_teaching.csv for demonstration purposes. This dataset was created from penguins.csv for the purposes of teaching this course using the script episodes/data/prepare.R. The year variable has been converted to text and missing values have been replaced with their mean and modal values for convenience.

See also

More information about the dataset is available in its official documentation.

Authors

This course was developed by Kamilla Kopec-harding with some additional material by David Mawdesley. Helpful reviews were provided by Catherine Smith. Artwork by Allison Horst was re-used under CC-BY-4.0 license.

The authors of the original Software Carpentries course from which this course was adapted are listed in the citation below.

Citations

Naupaka Zimmerman, Greg Wilson, Raniere Silva, Scott Ritchie, François Michonneau, Jeffrey Oliver, … Yuka Takemon. (2019, July). swcarpentry/r-novice-gapminder: Software Carpentry: R for Reproducible Scientific Analysis, June 2019 (Version v2019.06.1). Zenodo. http://doi.org/10.5281/zenodo.3265164

Gorman KB, Williams TD, Fraser WR (2014) Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3): e90081. https://doi.org/10.1371/journal.pone.0090081

Owner

  • Name: University of Birmingham - Carpentries Courses
  • Login: bham-carpentries
  • Kind: organization
  • Location: Birmingham, UK

Repositories for the Carpentries Courses organised at the University of Birmingham

Citation (CITATION.cff)

# This template CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to replace its contents
# with information about your lesson.
# Remember to update this file periodically,
# ensuring that the author list and other fields remain accurate.

cff-version: 1.2.0
title: Introduction to R and R Studio
message: >-
  Please cite this lesson using the information in this file
  when you refer to it in publications, and/or if you
  re-use, adapt, or expand on the content in your own
  training material.
type: dataset
authors:
  - given-names: Kamilla
    family-names: Kopec-Harding
abstract: >-
  This lesson provides an Introduction to R and R Studio for researchers
  at the University of Birmingham (UK). It has been adapted from
  the original Software Carpentries R for Reproducible Scientific Analysis course
  which can be found here https://github.com/swcarpentry/r-novice-gapminder
license: CC-BY-4.0

GitHub Events

Total
  • Issues event: 1
  • Public event: 1
  • Push event: 20
Last Year
  • Issues event: 1
  • Public event: 1
  • Push event: 20

Dependencies

.github/workflows/pr-close-signal.yaml actions
  • actions/upload-artifact v4 composite
.github/workflows/pr-comment.yaml actions
  • actions/checkout v4 composite
  • carpentries/actions/check-valid-pr main composite
  • carpentries/actions/comment-diff main composite
  • carpentries/actions/download-workflow-artifact main composite
.github/workflows/pr-post-remove-branch.yaml actions
  • carpentries/actions/download-workflow-artifact main composite
  • carpentries/actions/remove-branch main composite
.github/workflows/pr-preflight.yaml actions
  • carpentries/actions/check-valid-pr main composite
  • carpentries/actions/comment-diff main composite
.github/workflows/pr-receive.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • carpentries/actions/check-valid-pr main composite
  • carpentries/actions/setup-lesson-deps main composite
  • carpentries/actions/setup-sandpaper main composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/sandpaper-main.yaml actions
  • actions/checkout v4 composite
  • carpentries/actions/setup-lesson-deps main composite
  • carpentries/actions/setup-sandpaper main composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/update-cache.yaml actions
  • actions/checkout v4 composite
  • carpentries/actions/check-valid-credentials main composite
  • carpentries/actions/update-lockfile main composite
  • carpentries/create-pull-request main composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/update-workflows.yaml actions
  • actions/checkout v4 composite
  • carpentries/actions/check-valid-credentials main composite
  • carpentries/actions/update-workflows main composite
  • carpentries/create-pull-request main composite