If you can't find the answer you're looking for, send me an email at firstname.lastname@example.org. 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:
How is DictionR organized?
Snippets in DictionR are organized by the library they rely on to work.
Each snippet has at least one tag — visible at the bottom of the page. Each tag is clickable. It indicates the library the snippets relies on.
The tag shows which library the snippet relies on to work — an important information for you to determine which library to load, see below for more details.
The hompage of DictionR lists all the tags, offering you a super convenient way to browse all snippets.
Which library do I need to load?
@are meta tags that do not reference libraries.
Many snippets require a third party library to work properly. DictionR has made easy for you to determine which library you need to load for a given snippet to work properly. Three cases:
- the snippet doesn't need any library
- the snippet needs the Tidyverse
- the snippet needs something else
1. The snippet doesn't need any library
The snippet is tagged with
2. The snippet needs the Tidyverse
The snippet is tagged with
tidyverse: <library>. Illutration with
Two cases are possible:
- you use the Tidyverse
- you don't use the Tidyverse
2.1. You use the Tidyverse
You only need to load it once:
2.2. You don't use the Tidyverse
In the example above
tidyverse: dplyr, the library is
dplyr. This is what you need to load:
3. The snippet needs something else
The snippet is tagged with neither
tidyverse: <library>. Illutration:
In this case, it's
readODS. This is what you need to load:
Search in the homepage seems broken
Sometimes the search index for the search forms is not always updated when a new snippet is added. Click on "Rebuild search index" on the bottom menu to rebuild it.
How can I suggest a new snippet?
Sure! Just send me an email at email@example.com.
There is an issue with a snippet. What should I do?
Send me an email at firstname.lastname@example.org with the full name (number included) and the URL of the snippet and the problem you encountered. Thanks!