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).
Contact
For remarks, complaints, suggestions or anything else, you can contact the creator of this course via Linkedin, email (dom.makowski@gmail.com) 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
arrange()
spread()
separate()
Select and Filter
select()
ends_with()
= Select columns that end with a character stringcontains()
= Select columns that contain a character stringmatches()
= Select columns that match a regular expressionone_of()
= Select columns names that are from a group of namesnum_range(x, i:j)
filter()
(>, <, >=, <=, !=, %in%)
(&, |)
Group by
group_by()
summarise()
n()
Reshape
tidyr
gather()
separate()
spread(df, levels_to_columns, values)
Merge
full_join()
bind_rows()
bind_cols()