Learning objectives
By the end of this week, students should be able to
- Explain fundamental data structures in R
- lists
- matrices and arrays
- data frames and tibbles
- Describe the difference between data types and data classes
- Explain a variety of data formats with corresponding file extensions:
- plain-text rectangular files:
.csv
,.tsv
,.fwf
- proprietary binary files:
.xls
,.xlsx
,.sas7bdat
,.dta
,.sav
- json:
.json
- plain-text rectangular files:
- Write R code to
- create lists and tibbles
- subset lists and tibbles with
[]
,[[]]
,$
- import external data files using relative file paths and URL links