sjmisc - Data and Variable Transformation Functions
Data preparation is a common task in research, which usually takes the most amount of time in the analytical process. Packages for data preparation have been released recently as part of the tidyverse, focussing on the transformation of data sets. Packages with special focus on transformation of variables, which fit into the workflow and design-philosophy of the tidyverse, are missing.
sjmisc tries to fill this gap. Basically, this package complements the dplyr package in that sjmisc takes over data transformation tasks on variables, like recoding, dichotomizing or grouping variables, setting and replacing missing values, etc. A distinctive feature of sjmisc is the support for labelled data, which is especially useful for users who often work with data sets from other statistical software packages like SPSS or Stata.
The functions of sjmisc are designed to work together seamlessly with other packages from the tidyverse, like dplyr. For instance, you can use the functions from sjmisc both within a pipe-workflow to manipulate data frames, or to create new variables with mutate()
. See vignette("design_philosophy", "sjmisc")
for more details.
Contributing to the package
Please follow this guide if you like to contribute to this package.
Installation
Latest development build
To install the latest development snapshot (see latest changes below), type following commands into the R console:
library(devtools)
devtools::install_github("strengejacke/sjmisc")
Officiale, stable release
To install the latest stable release from CRAN, type following command into the R console:
install.packages("sjmisc")
References, documentation and examples
Please visit https://strengejacke.github.io/sjmisc/ for documentation and vignettes.
Citation
In case you want / have to cite my package, please cite as (see also citation('sjmisc')
):
Lüdecke D (2018). sjmisc: Data and Variable Transformation Functions. Journal of Open Source Software, 3(26), 754. doi: 10.21105/joss.00754