<p><img data-orig-file="https://strengejacke.files.wordpress.com/2017/06/sjuniverse.png?w=456" data-orig-size="364,355" data-medium-file="https://strengejacke.files.wordpress.com/2017/06/sjuniverse.png?w=456?w=300" data-attachment-id="1361" data-image-meta="{" data-image-description="" src="https://strengejacke.files.wordpress.com/2017/06/sjuniverse.png?w=456" data-permalink="https://strengejacke.wordpress.com/2017/06/19/my-set-of-packages-for-daily-data-analysis-rstats/sjuniverse/" data-large-file="https://strengejacke.files.wordpress.com/2017/06/sjuniverse.png?w=456?w=364" alt="" data-image-title="sjuniverse" sizes="(max-width: 364px) 100vw, 364px" data-comments-opened="1" class="wp-image-1361" data-recalc-dims="1"></p>
<p>I started writing my first package as collection of various functions that I needed for (almost) daily work. Meanwhile, packages were growing and bit by bit I sourced out functions to put them into new packages. Although this means more work for CRAN members when they have more packages to manage on their network, from a user-perspective it is much better if packages have a clear focus and a well defined set of functions. That’s why I now released a new package on CRAN, <a rel="nofollow" href="https://cran.r-project.org/package=sjlabelled" target="_blank">sjlabelled</a>, which contains all functions that deal with labelled data. These functions use to live in the <a rel="nofollow" href="https://cran.r-project.org/package=sjmisc" target="_blank">sjmisc-package</a>, where they now are deprecated and will be removed in a future update.</p>
<p>My aim is not only to provide packages with a clear focus, but also with a consistent design and philosophy, making it easier and more intuitive to use (see also <a rel="nofollow" href="https://strengejacke.wordpress.com/2017/02/08/data-wrangling-within-the-tidyverse-the-design-philosophy-behind-the-sjmisc-package-rstats/" target="_blank">here</a>) – I prefer to follow the so called „tidyverse“-approach here. It is still work in progress, but so far I think I’m on a good way…</p>
<p>So, what are the packages I use for (almost) daily work?</p>
<ul>
<li><a rel="nofollow" href="https://cran.r-project.org/package=sjlabelled" target="_blank">sjlabelled</a> – reading, writing and working with labelled data (especially since I collaborate a lot with people who use Stata or SPSS)</li>
<li><a rel="nofollow" href="https://cran.r-project.org/package=sjmisc" target="_blank">sjmisc</a> – data and variable transformation utilities (the complement to dplyr and tidyr, when it comes down from data frames to variables within the data wrangling process)</li>
<li><a rel="nofollow" href="https://cran.r-project.org/package=sjstats" target="_blank">sjstats</a> – out-of-the-box statistics that is not already provided by base R or packages</li>
<li><a rel="nofollow" href="https://cran.r-project.org/package=sjPlot" target="_blank">sjPlot</a> – to quickly generate tables and plot</li>
<li><a rel="nofollow" href="https://cran.r-project.org/package=ggeffects" target="_blank">ggeffects</a> – to visualize regression models</li>
</ul>
<p>The next step is creating <a rel="nofollow" href="https://www.rstudio.com/resources/cheatsheets/how-to-contribute-a-cheatsheet/" target="_blank">cheat sheets</a> for my packages. I think if you can map the scope and idea of your package (functions) on a cheat sheet, its focus is probably well defined.</p>
<p>Btw, if you also use some of the above packages more or less regularly, you can <a rel="nofollow" href="https://github.com/strengejacke/strengejacke" target="_blank">install the „strengejacke“-package</a> to load them all in one step. This package is not on CRAN, because its only purpose is to load other packages.</p>
<p><em>Disclaimer: Of course I use other packages everyday as well – this posting is just focussing on my packages that I created because I frequently needed these kind of functions.</em></p>
<p> Tagged: <a rel="nofollow" href="https://strengejacke.wordpress.com/tag/data-visualization/" target="_blank">data visualization</a>, <a rel="nofollow" href="https://strengejacke.wordpress.com/tag/ggplot/" target="_blank">ggplot</a>, <a rel="nofollow" href="https://strengejacke.wordpress.com/tag/r/" target="_blank">R</a>, <a rel="nofollow" href="https://strengejacke.wordpress.com/tag/rstats/" target="_blank">rstats</a>, <a rel="nofollow" href="https://strengejacke.wordpress.com/tag/sjplot/" target="_blank">sjPlot</a>, <a rel="nofollow" href="https://strengejacke.wordpress.com/tag/statistik/" target="_blank">Statistik</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strengejacke.wordpress.com/1360/" target="_blank"><img border="0" alt="" src="http://feeds.wordpress.com/1.0/comments/strengejacke.wordpress.com/1360/"></a> <img border="0" alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" data-recalc-dims="1"></p>
	<img alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/RxDdFA5cORQ" height="1">