Resources
For many topics in this class, we are going to be only scratching the surface. Below you can find some links that can help you learn more.
Readings
Textbook readings
- Emily Nordmann and Lisa DeBruine. Applied Data Skills. doi:10.5281/zenodo.6365077
- Danielle Navarro. R for Psychological Science.
Articles
- Roth et al. (2025). Ten principles for reliable, efficient, and adaptable coding in psychology and cognitive neuroscience. Nature Communications Psychology. link
Coding for all
Useful functions
- Basic statistics:
mean()
,median()
,min()
,max()
,sum()
calculate basic descriptive statistics on a vector. - Data dimension checks:
nrow()
,ncol()
return the number of rows and columns in a data framelength()
returns the number of items in an object. - Data manipulation:
subset()
allows filtering data based on conditions,sort()
sorts data in ascending order. - Data exploration:
table()
counts frequencies of unique values in a vector,head()
gives you a preview of the first six parts of an object, andstr()
tells you more about the structure of an object. - Sampling:
sample()
generates random samples from a vector. - Data analysis with dplyr:
filter()
,select()
,mutate()
,group_by()
are powerful functions for data manipulation within the dplyr package - covered in the Data Wrangling module - Visualization with ggplot2:
ggplot()
is the primary function to create customized plots using the ggplot2 package - covered in the Data Visualization module - More useful functions
R cheatsheets
- Official cheatsheets from Posit
Working with files
- How to zip files: mac, windows
- Common Mac terminal commands
Practice problems
Version control with git
- Git, GitHub, and Version Control by Matt Crump
- Happy Git with R by Jenny Bryan
Statistical analysis with R
- Learning Statistics with R by Danielle Navarro
- Answering Questions with Data by Matt Crump, Danielle Navarro, and Jeffrey Suzuki
Data visualization
- ggplot2: Elegant Graphics for Data Analysis by Hadley Wickham, Danielle Navarro, and Thomas Lin Pedersen
Natural language processing with R
- Tidy Text Mining by Julia Silge and David Robinson
Advanced programming with R
- Advanced R by Hadley Wickham
Resources for learning Python
- Python vs R: What’s the Difference?
- Lab in Cognition and Perception by Todd Gureckis