## ── Attaching packages ──────────────────────────────────── tidyverse 1.2.1 ──
## ✔ ggplot2 3.2.1     ✔ purrr   0.3.3
## ✔ tibble  2.1.3     ✔ dplyr   0.8.3
## ✔ tidyr   1.0.0     ✔ stringr 1.4.0
## ✔ readr   1.3.1     ✔ forcats 0.4.0
## ── Conflicts ─────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()

1. Changing the author field and file name.

(a) Change the author: field on the Rmd document from Your Name Here to your own name.
(b) Rename this file to “lab02_YourHameHere.Rmd”, where YourNameHere is changed to your own name.

2. Data practice

In class we imported the survey data using the read.table() function. (Note: on Homework 1 you’ll be asked to use the read.csv() function instead.)

This is the code we used:

survey <- read.table("", header=TRUE, sep=",") 
(a) How many survey respondents are from MISM or Other?
# Edit me
(b) What % of survey respondents are from PPM?
# Edit me

3. Index practice

(a) Use $ notation to pull the OperatingSystem column from the survey data
# Edit me
(b) Do the same thing with [,] notation, referring to OperatingSystem by name
# Edit me
(c) Repeat part (b), this time referring to OperatingSystem by column number
# Edit me
(d) Repeat part (b), this time using the select() function.
# Edit me
(e) Use filter() and select() together to get the Program and Rexperience of every student who watched at least 10 hours of TV last week.
# Edit me

4. Optional practice

Try re-running as much of the lecture code as you have time for, taking time to understand what is happening in each line of code.

Tip: Instead of copying and pasting code, practice typing it yourself. This will help you to learn the syntax.

# Edit me (optional)