Git Product home page Git Product logo

r_intro_june2018's Introduction

Intro to R Workshop Materials

Research Computing Services.

Software and Files

R and RStudio

This workshop assumes you have recent versions of R and RStudio - R 3.4 or 3.5 and RStudio 1.1. R and RStudio installation notes are in the main R workshop repository or the summer workshop page.

If you normally connect to the Northwestern wireless network, then that's all you need to do before the workshop. This workshop downloads packages and data files from the internet as we work through the material.

If you do not have a NetID, you may have difficulty accessing the wireless network at Northwestern (the Guest network has some limits on it that can possibly cause issues).

If you won't be able to connect to the Northwestern network on an independent wireless network during the workshop, OR if you don't have administrator privileges on your laptop, you might want to install some packages ahead of time.

To do so, start R, then run the commands in packagelist.r. If you need assistance, please contact the workshop instructor before the workshop.

Option 1: On your laptop

Download all of the materials to your laptop. See Downloading from GitHub reference.

Option 2: RStudio Cloud

Go to https://rstudio.cloud and log in (or create an account if needed). Click on Your Workspace in the left Menu. Then make sure you are on the Projects tab, and click the blue button for New Project. Choose the option of creating one from a GitHub repo. The repo address is https://github.com/nuitrcs/r_intro_june2018. This will take a few moments to copy files from this repository. You'll then need to install packages. Open packagelist.r and run the code. The tidyverse package will take a while to install.

You can use this space like you would your RStudio on own computer, except you can only access the files that are part of the project and save files within the project.

Types of Files

The main materials are slides. Keynote and Powerpoint versions are available:

Exercises we do during the workshop are either in the slides or in .R files in the exercises directory.

Reference materials and independent practice exercises are written in RMarkdown (*.Rmd). You can open these files directly in RStudio and run the code chunks. The RMarkdown files have also been converted to html files for easy viewing. Exercise files have one RMarkdown file (with answers) and two html files (one with and one without answers). Links to the html files are in the coreexercises directory.

Opening/Downloading Files

RMarkdown files can be previewed in GitHub, but they won't include the output of the code cells. HTML files generated from the RMarkdown generally can't be previewed directly in the GitHub repository view, but they can be viewed online through GitHub Pages; links are provided for that below. HTML files are self-contained; this means they are on the large side, but they can be downloaded and viewed locally as a single file.

REMEMBER: if downloading individual files from GitHub, you want to download the RAW version of a file. Otherwise, it's often better to download everything together by using the green clone/download button for the entire repository. Downloading from GitHub reference.

Other Resources

An extensive list of good R resources can be found in the main R workshop repository.

The handouts for this workshop are from:

R Reference Card: lists many commonly used functions

RStudio Base R Cheat Sheet: syntax reference

Online reference for plotting for this workshop:

Base R Examples by David Gerard

R Base Graphics Cheat Sheet by Joyce Robbins

r_intro_june2018's People

Contributors

kumarhk avatar ramorel avatar cmaimone avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

kumarhk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.