Skip to content

Commit

Permalink
Update index.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumble1 authored Nov 19, 2021
1 parent 83b8569 commit fe41188
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ question("What is important for your data if you want to import it into R? (sele
**Exercise 1: Using the 'happiness' data set we used in the workbook – let’s do a quick exercise to recap what we learnt in Modules 1-3, but writing out the code entirely in RStudio instead of online.**

0. Start a new project file, and a new RMD script file and write the initial set up code to import the happiness dataset and load the `dplyr` and `ggplot2` libraries. Remember to save the Excel file in CSV format before importing the data.
(If you were following along to here directly from the workbook you may have already done this; so you can skip this step!). You can find the Excel file here: [Happiness.xlsx](https://github.com/stats4sd/r2020_04Importation/raw/main/Happiness.xlsx)
(If you were following along to here directly from the workbook you may have already done this; so you can skip this step!).
You can find the Excel file here: [Happiness.xlsx](https://github.com/stats4sd/r2020_04Importation/raw/main/Happiness.xlsx)

1. Find the 5 countries with the lowest ‘generosity scores’

Expand All @@ -103,14 +104,19 @@ question("What is important for your data if you want to import it into R? (sele
3. Make a plot showing the relationship between generosity and GDP per capita


**Exercise 2: Download the file below that contains the imdb dataset and the Module 3 exercises in RMD format.
**Exercise 2: Download the file below that contains the imdb dataset and the Module 3 exercises in RMD format.**

[Module-3-Exercises.zip](https://github.com/stats4sd/r2020_04Quiz/raw/main/Module-3-Exercises.zip)

Create a new project in RStudio and unzip the files into your new project folder.

Then open the workbook, and load in the libraries and the dataset. The code for these steps are written for you.

Then you can copy across your answers from Module 3 (which should still be saved on the online version if you have completed Module 3) into this new workbook.
And, if you did finish the Module 3 exercises, now is the time to do so! Only now you are using your own version RStudio rather than using the version of R on the server.**

[Module-3-Exercises.zip](https://github.com/stats4sd/r2020_04Quiz/raw/main/Module-3-Exercises.zip)
And, if you did finish the Module 3 exercises, now is the time to do so! Only now you are using your own version RStudio rather than using the version of R on the server.





Expand Down

0 comments on commit fe41188

Please sign in to comment.