Giter VIP home page Giter VIP logo

431-data's Introduction

431-data

Data and R code repository for 431. This will be continually updated as the semester progresses.

To obtain all of the data and code in this repository in a single zip file, click on the green button marked Code and click on Download ZIP.

Or, to download a single .Rmd or .csv file, click on the file you want to download to view its contents, and then in the top right, right click (on Windows, on a Mac, use Control-Click) on the Raw button, and then save the plain text file that results to your computer, while ensuring that your machine doesn't add on a .txt extension. Details follow...

Detailed steps for downloading individual .csv or .Rmd files from Github

Below, we provide detailed steps for downloading such files ...

  1. using the Safari browser on a Mac
  2. using Google Chrome on a Mac
  3. using Google Chrome on a PC
  4. using Microsoft Edge on a PC

Using Safari on a Mac

Suppose you've identified a single .Rmd (R markdown) file you want to download onto your PC from Github using Safari as your browser.

  1. Click on the file name in Github to view its contents.
  2. On the top right of the document viewer window, click the Raw button. This will take you to a page that displays the text in the file.
  3. Now, you want to download that page as a .Rmd file (you will need to remove the .txt extension that your browser will attempt to append) and save it somewhere useful. To do this on a Mac, I would do the following:
    1. Select Command-S or File ... Save Page As... which will bring up a download window.
    2. At the bottom of the window, you'll see a Format: box which will be set to Web Archive. Change that to Page Source and hit Save.
    3. This will bring up a note asking if you want to append .txt to the name. Select Don't append.

The resulting .Rmd file should open properly in RStudio.

Suppose you've identified a .csv (data) file you want to download onto your PC from Github using Safari as your browser.

  1. Click on the file name in Github to view its contents.
  2. On the top right of the document viewer window, click the Raw button. This will take you to a page that displays the text in the file.
  3. Now, you want to download that page as a .csv file and save it somewhere useful. To do this on a Mac, I would do the following:
    1. Select Command-S or File ... Save Page As... which will bring up a download window.
    2. At the bottom of the window, you'll see a Format: box which should be set to Page Source
    3. If you are asked whether you want to append .txt, select Don't Append, then hit Save.

The resulting .csv file should work for you in RStudio.

Using a Mac, with Google Chrome

Suppose you've identified a single .Rmd (R markdown) file you want to download onto your Mac from Github using Google Chrome as your browser.

  1. Click on the file name in Github to view its contents.
  2. On the top right of the document viewer window, click the Raw button. This will take you to a page that displays the text in the file.
  3. Now, you want to download that page as a .Rmd file (you will need to remove the .txt extension that your browser will attempt to append) and save it somewhere useful. To do this on a Mac, I would do the following:
    1. Select Command-S or File ... Save Page As... which will bring up a download window.
    2. At the bottom of the window, you'll see a Format: box which will be set to text. Change that from text to all files.
    3. Now, at the top of the window, look for the filename where it says Save As: and delete the .txt at the end of the file name.
    4. Then hit Save. The resulting .Rmd file should open properly in RStudio.

Suppose you've identified a .csv (data) file you want to download onto your Mac from Github using Google Chrome as your browser.

  1. Click on the file name in Github to view its contents.
  2. On the top right of the document viewer window, click the Raw button. This will take you to a page that displays the text in the file.
  3. Now, you want to download that page as a .csv file and save it somewhere useful. To do this on a Mac, I would do the following:
    1. Select Command-S or File ... Save Page As... which will bring up a download window.
    2. At the bottom of the window, you'll see a Format: box which should be set to comma-separated values.
    3. At the top of the window, look for the filename where it says Save As: and if there is a .txt at the end of the file name, delete the .txt.
    4. Then hit Save. The resulting .csv file should work for you in RStudio.

Using a PC, with Google Chrome

Suppose you've identified a .Rmd (R markdown) or .csv (comma-separated version data) file you want to download onto your PC from Github.

  1. Click on the file (either .Rmd or .csv) to view its contents.
  2. On the top right of the document viewer window, click the Raw button. This will take you to a page that displays the text in the file.
  3. Download that page by selecting Ctrl-S (or by right-clicking and selecting Save as.)
  4. Where you see Save as type: at the bottom of the download window select all files instead of text and then remove the .txt extension that your browser will attempt to append.
  5. Save the file somewhere useful. The resulting file should open properly in R Studio.

Using Microsoft Edge on a PC

Suppose you've identified a .Rmd (R markdown) file you want to download onto your PC from Github using Microsoft's Edge browser.

  1. Click on the file to view its contents.
  2. On the top right of the document viewer window, click the Raw button. This will take you to a page that displays the text in the file.
  3. Download that page by selecting Ctrl-S (or by right-clicking and selecting Save as.)
  4. Where you see Save as type: at the bottom of the download window select all files instead of text and then remove the .txt extension that your browser will attempt to append, before you save the file somewhere useful.
  5. The resulting file should open properly in R Studio.

Suppose you've identified a .csv (data) file you want to download onto your PC from Github using Microsoft's Edge browser.

  1. Click on the file to view its contents.
  2. On the top right of the document viewer window, click the Raw button. This will take you to a page that displays the text in the file.
  3. Download that page by selecting Ctrl-S (or by right-clicking and selecting Save as.)
  4. Where you see Save as type: at the bottom of the download window be sure it says Microsoft Excel Comma Separated Values File (*.csv).
  5. Save the file somewhere useful. The resulting data file should work properly in R Studio.

431-data's People

Contributors

thomaselove avatar stevenmayher avatar wyattbensken avatar

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.