About ds4psy

This book was first started to summarize and elaborate upon key chapters of the R for Data Science (Wickham & Grolemund, 2017) textbook. As many of my students struggled with this text, I began selecting and summarizing essential concepts and commands and adapted my examples and exercises to the needs of students in psychology and other social sciences. By now, most chapters here contain a mix of summaries and additional materials, which typically complement the tidyverse perspective embraced by its original source.

With the exception of Chapter 1 — which covers basic R concepts and commands that are not explicated at the beginning of the r4ds textbook — reading this book is not required for passing my course. However, many practical examples that are geared towards the interests of social scientists should motivate students to apply the newly acquired tools to challenging problems. Hopefully, students will find solving these exercises both enjoyable and enlightning and welcome my summaries of essential commands as helpful.


Everyone likes being linked or cited. In case you find this book or the corresponding R package useful, please use the following citation:

  • Neth, H. (2020). ds4psy: Data Science for Psychologists.
    Social Psychology and Decision Sciences, University of Konstanz, Germany.
    Textbook and R package (version 0.2.1, May 6, 2020).
    Retrieved from https://bookdown.org/hneth/ds4psy/.

A BibTeX entry for LaTeX users is:

  title = {ds4psy: Data Science for Psychologists},  
  author = {Hansjörg Neth},  
  year = {2020},  
  organization = {Social Psychology and Decision Sciences, University of Konstanz},  
  address = {Konstanz, Germany},  
  note = {Textbook and R package (version 0.2.1, May 6, 2020)},  
  url = {https://bookdown.org/hneth/ds4psy/}

The URL of the R package ds4psy is https://CRAN.R-project.org/package=ds4psy.


Creative Commons License

Data science for psychologists (ds4psy) by Hansjörg Neth is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


Wickham, H., & Grolemund, G. (2017). R for data science: Import, tidy, transform, visualize, and model data. Retrieved from http://r4ds.had.co.nz