Statistics for Psychologists with R: An Introduction

Dominique Makowski

This course is supported by the École de Neuropsychologie group.

About the course

Course Status
Length ≈ ...min

This course was crafted by psychologists, neuropsychologists and neuroscientists for psychologists, neuropsychologists and neuroscientists. As such, it is a straightforward introduction to R with a special focus on how to get some actual results with it. It is not a programming course on R, nor a course on statistics per se.

Note that there are other more complete tutorials teaching R for psychological research (such as this one or my favourite one).


For remarks, complaints, suggestions or anything else, you can contact the creator of this course via Linkedin, email ( or by creating an issue on this repository.

The Pipe Operator %>%

Create Variables

  • On the fly

  • mutate()

Rename Variables, Levels and Relevel

  • rename()

  • factor(labels=) [rename levels]

  • factor(levels=) [reorder levels]


  • arrange()
  • spread()
  • separate()

Select and Filter

  • select()
  • ends_with() = Select columns that end with a character string
  • contains() = Select columns that contain a character string
  • matches() = Select columns that match a regular expression
  • one_of() = Select columns names that are from a group of names
  • num_range(x, i:j)
  • filter()
  • (>, <, >=, <=, !=, %in%)
  • (&, |)

Group by

  • group_by()
  • summarise()
  • n()



  • gather()
  • separate()
  • spread(df, levels_to_columns, values)


  • full_join()
  • bind_rows()
  • bind_cols()