Getting Started
Answer the following questions in the Quarto document template linked in the slides for the first day of class. Render the document, download the resulting pdf file, and submit it to Gradescope.
Question 1
Create a vector with the even integers between 1 and 10, as well as the number 99 (six elements in total). Save it into an object named vec.
Question 2
Answer this question using vec from the last question. If you don’t know the name of a function to use, Google it!
part a
Find the sum of the vec.
part b
Find the max of vec.
part c
Find the mean of vec and round it to the nearest integer.
Question 3
Using R code, find “three times one point two raised to the quantity thirteen divided by six.”
Question 4 - UN Votes
Note: you are not expected to understand this code yet! So don’t panic. You’ll only be asked to make a minor change.
Since its founding in 1946, the United Nation has regularly put forth resolutions that aim to express the will of its members. Impactful historical resolutions have involved the Declaration of Human Rights in 1948, a prohibition on the use of nuclear and thermonuclear weapons in 1968, and the establishment of a no-fly zone in Libya in 2011. After each resolution is proposed, it is voted on in a roll-call vote of the member nations.
The data set at hand, unvotes, contains the voting records of every nation in the UN from 1946 - 2019 on three different issues: Colonialism, Human Rights, and Nuclear Weapons.
part a
We have created a data visualization that shows the proportion of “yes” votes over time on three different issues: Colonialism, Human Rights, and Nuclear Weapons. Modify it to compare the voting patterns of the United States, the United Kingdom, and one other country of your choosing (not Turkey). You do not need to do anything else for this question.
part b
Formulate two claims about voting behavior that is supported by this graphic. Categorize each claim as begin a summary, generalization, causal claim, or prediction.
part c
What else would you like to learn about this data set or the context of voting at the United Nations that would allow you to make more informed, accurate, thoughtful, and effective claims? List three specific items.