sjmisc/ 0000755 0001762 0000144 00000000000 14620415212 011537 5 ustar ligges users sjmisc/NAMESPACE 0000644 0001762 0000144 00000007302 14153357271 012773 0 ustar ligges users # Generated by roxygen2: do not edit by hand
S3method(all_na,data.frame)
S3method(all_na,default)
S3method(all_na,list)
S3method(as.data.frame,sjmisc_frq)
S3method(big_mark,data.frame)
S3method(big_mark,default)
S3method(big_mark,list)
S3method(center,default)
S3method(center,mids)
S3method(dicho,default)
S3method(dicho,mids)
S3method(format,sjmisc_frq)
S3method(is_even,data.frame)
S3method(is_even,default)
S3method(is_even,list)
S3method(is_float,data.frame)
S3method(is_float,default)
S3method(is_float,list)
S3method(is_odd,data.frame)
S3method(is_odd,default)
S3method(is_odd,list)
S3method(is_whole,data.frame)
S3method(is_whole,default)
S3method(is_whole,list)
S3method(prcn,data.frame)
S3method(prcn,default)
S3method(print,sj_has_na)
S3method(print,sj_merge.imp)
S3method(print,sjmisc_descr)
S3method(print,sjmisc_frq)
S3method(print,sjmisc_frq2)
S3method(print,sjmisc_grpdescr)
S3method(print_html,sjmisc_frq)
S3method(print_md,sjmisc_frq)
S3method(rec,default)
S3method(rec,mids)
S3method(recode_to,default)
S3method(recode_to,mids)
S3method(round_num,data.frame)
S3method(round_num,default)
S3method(round_num,list)
S3method(row_count,default)
S3method(row_count,mids)
S3method(row_means,default)
S3method(row_means,mids)
S3method(row_sums,default)
S3method(row_sums,mids)
S3method(std,default)
S3method(std,mids)
S3method(to_long,default)
S3method(to_long,mids)
S3method(total_mean,data.frame)
S3method(trim,data.frame)
S3method(trim,default)
S3method(trim,list)
export("%>%")
export("%nin%")
export(add_case)
export(add_columns)
export(add_id)
export(add_rows)
export(add_variables)
export(all_na)
export(big_mark)
export(center)
export(center_if)
export(clean_values)
export(col_count)
export(complete_cases)
export(complete_vars)
export(count_na)
export(de_mean)
export(descr)
export(dicho)
export(dicho_if)
export(empty_cols)
export(empty_rows)
export(find_in_data)
export(find_var)
export(flat_table)
export(frq)
export(group_labels)
export(group_labels_if)
export(group_str)
export(group_var)
export(group_var_if)
export(has_na)
export(incomplete_cases)
export(incomplete_vars)
export(is_cross_classified)
export(is_crossed)
export(is_empty)
export(is_even)
export(is_float)
export(is_nested)
export(is_num_chr)
export(is_num_fac)
export(is_odd)
export(is_whole)
export(merge_df)
export(merge_imputations)
export(move_columns)
export(numeric_to_factor)
export(prcn)
export(print_html)
export(print_md)
export(rec)
export(rec_if)
export(rec_pattern)
export(recode_to)
export(recode_to_if)
export(ref_lvl)
export(remove_cols)
export(remove_empty_cols)
export(remove_empty_rows)
export(remove_var)
export(rename_columns)
export(rename_variables)
export(replace_columns)
export(replace_na)
export(reshape_longer)
export(rotate_df)
export(round_num)
export(row_count)
export(row_means)
export(row_sums)
export(seq_col)
export(seq_row)
export(set_na)
export(set_na_if)
export(shorten_string)
export(split_var)
export(split_var_if)
export(spread_coef)
export(std)
export(std_if)
export(str_contains)
export(str_end)
export(str_find)
export(str_start)
export(tidy_values)
export(to_character)
export(to_dummy)
export(to_factor)
export(to_label)
export(to_long)
export(to_numeric)
export(to_value)
export(total_mean)
export(trim)
export(typical_value)
export(var_rename)
export(var_type)
export(word_wrap)
export(zap_inf)
importFrom(insight,print_html)
importFrom(insight,print_md)
importFrom(magrittr,"%>%")
importFrom(rlang,.data)
importFrom(sjlabelled,set_na)
importFrom(sjlabelled,to_character)
importFrom(sjlabelled,to_factor)
importFrom(sjlabelled,to_label)
importFrom(sjlabelled,to_numeric)
sjmisc/README.md 0000644 0001762 0000144 00000005751 14620407517 013037 0 ustar ligges users # sjmisc - Data and Variable Transformation Functions
[](https://cran.r-project.org/package=sjmisc) [](https://doi.org/10.21105/joss.00754) [](https://strengejacke.github.io/sjmisc/) [](https://cranlogs.r-pkg.org:443/) [](https://cranlogs.r-pkg.org:443/)
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](https://github.com/strengejacke/sjmisc/blob/master/.github/CONTRIBUTING.md) 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:
```r
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:
```r
install.packages("sjmisc")
```
## References, documentation and examples
Please visit [https://strengejacke.github.io/sjmisc/](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
[](https://doi.org/10.21105/joss.00754)
sjmisc/data/ 0000755 0001762 0000144 00000000000 13451124270 012452 5 ustar ligges users sjmisc/data/efc.RData 0000644 0001762 0000144 00000042134 13451124270 014130 0 ustar ligges users ՝]qߏIJ9 1*TRhjIlHI)AIˡ. ÿ ( p/gιV_3ܻKw{{'ϧ?.|rsXq{?9/
pӍ~<=|o11}z
G7~g9 Pv^1r<371?Wü+1y5KAFO>
}z6̼cz'ZcB?AS|n<_#}DXK?3UӍaEG||]
|+w< A#:;wgc="˾9GUҏqƥ_zKBn#ZW?6<_Q/`ޛh~艾_"eOyѮ71ۀE@# :_
A#Kq?x9/{s{ u`a܈@z^MSqsK#O1 ޫh˟T1_H/z^釶zM?qߒCr)owcݠ/OET_}ճʺ'fK鳀u81ƕW*QrI^':
<1X2?'ᾥy)=~3?Yw=v'/bu\puR;_A
.\>E)oH?W/E:G[+u~-d?W(uR?!}|:W?-swGWP/;U|kS?\RP柕2x.O|y;=q!wCyP5@/>Aj?ެKX Kq8к>SYgJWЯ~+qd\K{
^tq<ȼsYi\tY${J ^J:
ΒCr3