Please upload your final completed lab on the Assignments page in Canvas, as per the instructions below.
You are welcome and expected to ask for help from the instructors if you get stuck: Please also come to the R Bootcamp on Friday!
In this lab, we will experiment with our new skills of creating and removing folders and files.
Note: There are no data associated with this lab.
Check what your current working directory is.
Set the working directory to your desktop.
Create a folder called `Harry-Potter-Project’.
Within `Harry-Potter-Project/’, create the separate folders: ‘Data’, ‘Rcode’, and ‘Results’.
Within the Rcode folder, create a file called ‘HP-Movie-Budgets.txt’
Within the Rcode folder, create a file called ‘HP-analysis.r’
Move the file ‘HP-Movie-Budgets.txt’ from Rcode/ to Data/.
Delete all these new folders and files and reset the working directory.
(Check that this all worked using your GUI).
You will need to write R code to answer each of the questions.
Please format your answers as follows:
Copy and paste each question, commented out. This ensures that we know which answer corresponds to which question.
Write your R code answer below each question.
It should look something like this:
# LAB: Workspace and Files # Simon Queenborough # 1. What year was the first Harry Potter movie released? 2001 # 2. Assign this value to an object x <- 2001
You are permitted to submit your answers as many times as you like within 2 weeks.
The ‘Assignments’ task in Canvas permists comments, which allows us to help each student individually.
We will comment and/or grade regularly throughout the week.
Email notifications of our comments will come in the daily Canvas email, or you can change the notification setting to reveive an email as soon as we submit a comment.
Each lab will close after 2 weeks (check the date listed on each assignment!
Final grades for that lab will then be computed and entered into the Canvas gradebook.
To submit your answers on Canvas
Log into Canvas.
Go to the Assignments page.
Under ‘Labs’, you should find the ‘Workspace and Files’ assignment.
Copy and paste your R code into the text box.
Click ‘Submit Assignment’.
To update your code, re-enter you code in the text box and click ‘resubmit assignment’.