Solutions document: R version

Question 1

This is the text for question 1, with its accompanying code

# Example code for the question
1 + 1
[1] 2

Text for the solution to question 1.

You can include additional code chunks if required.

# Additional code chunk for the solution
print("Hello, world!")
[1] "Hello, world!"

Question 2

This is the text for question 2 …