Homework Module 1.2
Your Name (replace me)
Date (replace me)
In the questions below, use R code to answer questions. For any non-coding questions, give your answer as a comment.
- In the code chunk below, define what a variable is (using comments), and create a variable
myVariable
set equal to 20.
- Describe what a vector is in R, and create a sample vector below:
- In the code chunk below, load the tidyverse. Why might we do this, and what is the tidyverse for?
- Describe what a function is. What is an argument? How might you learn about what functions exist in R?
- What is camel case? Describe some best practices for naming variables.
- What is the mean for the survey responses for self reported willingness to settle in a remote environment (hint: use the
remote
column)
- What does the glimpse function do (we have not covered it)? How might you learn more about it?