If you can't find the answer you're looking for, send me an email at email@example.com. I'll be happy to help!
In order to facilitate everything, I use the following naming conventions:
dfindicates a dataframe or a tibble (tibbles are beefed up dataframes used by the Tidyverse)
colindicates a column
rowindicates a row
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.
Each snippet has a unique numerical ID. For convenience and ease-of-use, the URL of a given snippet is based on this ID:
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.
- the snippet needs
base: <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, use
library(tidyverse). If you don't use the Tidyverse, use
- the snippet needs a non-Tidyverse library called
<something else>. Load the library
If multiple libraries are mentionned, you need to repeat this process and to load all of them (except for
base and its sublibraries).
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!