Skip to content

Data and R code repository for PQHS/CRSP/MPHP 431 with Professor Thomas Love at Case Western Reserve University

Notifications You must be signed in to change notification settings

nshirke04/431-data

Repository files navigation

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.

About

Data and R code repository for PQHS/CRSP/MPHP 431 with Professor Thomas Love at Case Western Reserve University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages