This page is both a manual and a help page for DictionR. I strongly encourage you to read it before diving into DictionR!

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 column
  • row 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?

Please be aware of the naming convention in DictionR for Tidyverse related libraries. More details below.

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:

  1. the snippet needs base or a base: <library> sublibrary. You don't need to load it, it's already loaded in R.
  2. the snippet needs the Tidyverse: tidyverse: <library>. If you use the Tidyverse, use library(tidyverse). If you don't use the Tidyverse, use library(<library>).
  3. the snippet needs a non-Tidyverse library called <something else>. Load the library library(<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!