Skip to content

raerickson/introduction_to_r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to R

This repository contains teaching materials used for introduction to R courses. The purpose of putting the materials online in a git repo is to allow other people to contribute to the tutorial and use the tutorial. Additional tutorial materials may be added to the repo as they are developed.

Code Overview

This README file describes how to use this code.

Files

The following files are contained in this repository:

  • README.md is this file.
  • Intro_to_R folder contains all of the tutorial materials:
    • code.R is the code used in the tutorial. This code can be used as a stand-alone resource for students in the course. It is also used by the RMarkdown file.
    • Intro_to_R.Rmd is the RMarkdown file used to generate the tutorial.
    • Intro_to_R.pdf is the tutorial in PDF format.
    • adult_density_RAW_data.csv is an example dataset used in the tutorial. The official copy of the data may be found at https://doi.org/10.5066/F7DR2TD0.
  • Alternatives_NHST is a folder with alternatives to Null Hypothesis Significance testing.
    • acute_raw data.csv is an example USGS dataset (authoritative copy and meta-data at https://doi.org/10.5066/F7NV9GQR).
    • examples.R is the R code for the example.
    • LoonData2018_03_09.csv is an example USGS dataset (authoritative copy and meta-data at [https://doi.org/10.5066/P9TDCH3F(https://doi.org/10.5066/P9TDCH3F).
    • supplement.bib is the BibTex file
    • walkthrough.pdf is a complied PDF version of the handout
    • walkthrough.Rmd is the RMarkdown file used to generate the handout.
    • run_markdown.R contains R code to compile the R Markdown file if one is not using RStudio.
    • docker_build contains a dockerfile that builds a version of R that can be used to compile the tutorial. https://doi.org/10.5066/P9TDCH3F).
  • LICENSE.md is the Official USGS License.
  • code.json is the code metadata.
  • Contributing.md describes how to contribute to this project.
  • Disclaimer.md is the standard USGS disclaimer.

Directions for Use

Besides base R, this tutorial requires the following packages and their dependencies to be installed:

  • tidyverse
  • scales
  • car
  • maps
  • lme4
  • broom

Contacts

Richard A. Erickson (rerickson@usgs.gov)

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages