9/21/2022
Chapter 6 - Tidy data
- Data Intake - more examples - see TidyData-Intake.R
- Recoding - translation tables can be very helpful
- From strings to numbers
- The functions parse_number() and parse_character() make translations
- Dealing with dates using the lubridate package
- Factors or strings
- Factor is a special data type used to represent categorical data
- readr:read_csv() will interpret character strings as strings, not as factors
- read.csv() converts character strings to factors
- Remember to check the data type for each variable, especially if you are getting odd results
- Lab time for coding - complete activites 7 and 8 and then try web scraping some data of interest to you.
We will have a problem session on Friday and move on with Chapter 7 on Monday.