Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.77 KB

newproject.md

File metadata and controls

40 lines (24 loc) · 1.77 KB

Create New Poroject in RStudio

  1. Open RStudio and go to File>New Project in the top menu
  2. Select New Directory
  3. Choose Empty Project
  4. Type Directory Name, e.g., gps-r or what you want, and navigate where you want this to live (Desktop is usually easy to find)
  5. Select 'Create project' and now download the data

Download gapminder data into the project

We need a data folder inside our project.

  1. Once you create a project above you should be in the project folder and the following will work
  2. In RStudio far lower right pane, select 'Files'
  3. Click 'New Folder' and name 'data'
  4. In the console, paste and enter (without the >)

download.file('https://raw.githubusercontent.com/resbaz/r-novice-gapminder-files/master/data/gapminder-FiveYearData.csv', 'data/gapminder-FiveYearData.csv')

  1. This will download and place a gapminderFiveYearData.csv inside the data folder. Browse to the data/ folder to confirm that it worked.

Instructions With Screenshots

  1. Open RStudio and go to File>New Project>New Project in the top menu

Create New project

  1. Select New Directory > Empty Project:

Name New project

  1. Create a new data folder in project folder:

New data folder

  1. Download gapminder data into data folder:

Run download.file('https://raw.githubusercontent.com/resbaz/r-novice-gapminder-files/master/data/gapminder-FiveYearData.csv', 'data/gapminder-FiveYearData.csv') from console

Download data