If you can't find the answer you're looking for, send me an email at learnrstats@icloud.com. I'll be happy to help!
Conventions
Naming
In order to facilitate everything, I use the following naming conventions:
df
indicates a dataframe or a tibble (tibbles are beefed up dataframes used by the Tidyverse)col
indicates a columnrow
indicates a row
Pipe operator
The pipe operator %>%
is a convenient tool available in the Tidyverse. I encourage every R user to use it — it simplifies the code, makes it clearer and easier to debug. Unless specified otherwise, the snippets assume you use the pipe operator.
That being said, all snippets where the pipe operator is used offer at least one extra example of the main code written without the pipe operator.
URLs
Each snippet has a unique numerical ID. For convenience and ease-of-use, the URL of a given snippet is based on this ID:
https://dictionr.aleryon.science/62
Which library do I need to load?
Many snippets require one or several libraries to work properly. DictionR has made easy for you to determine which libraries you need to load for a given snippet to work properly.

Three cases:
- the snippet needs
base
or abase: <library>
sublibrary. You don't need to load it, it's already loaded in R. - the snippet needs the Tidyverse:
tidyverse: <library>
. If you use the Tidyverse, uselibrary(tidyverse)
. If you don't use the Tidyverse, uselibrary(<library>)
. - the snippet needs a non-Tidyverse library called
<something else>
. Load the librarylibrary(<something else>)
.
If multiple libraries are mentionned, you need to repeat this process and to load all of them (except for base
and its sublibraries).

FAQ
How can I suggest a new snippet?
Of course! Please see this page.
There is an issue with a snippet. What should I do?
Please see this page. Thanks!