Some R Packages I would love to explore (October 2020)
A useful note for my future self (and probably to others)
These are some packages I have just discovered which I would like to try/use in the future. For future reference, I have added a brief description and links to source code:
Data munging:
janitor
: has simple functions for examining and cleaning dirty data. It was built with beginning and intermediate R users in mind and is optimized for user-friendliness. Advanced R users can already do everything covered here, but with janitor they can do it faster and save their thinking for the fun stuff.rex
makes writing regular expressions easier by using a friendlier syntax. I always have some difficulties memorizing regex expressions and usually have to use the Regex101 (a great resource, by the way) as a reminder.- the
validate
+errorlocate
+deductive
+dcmodify
team. These group of packages from the same author seem to work as a team.validate
validates data’s structure (It can even validate data from rule files written inyaml
),errorlocate
finds the faulty observations, which can later be corrected by eitherdcmodify
ordeductive
(from predefinded rules)
Visualization:
- hrbrthemes provides additional Themes and Theme Components for my beloved
ggplot2
. see
provides additional color palettes and backgrounds forggplot
ggannotate
: positioning annotations inggplot
.
Geospatial:
rmapzen
: a mapzen API client for R (Documentation). I am always looking for good geocoding services (currently usingphoton
), and this package uses Mapzen’s Pelias geocoding (amongst other things).parzer
parses messy coordinates and converts from different formats to decimal. Also, provides helper functions such as getting hemisphere.