sjmisc: Data Transformation and Labelled Data Utility Functions
Version 2.4.0

Collection of miscellaneous utility functions (especially intended for people coming from other statistical software packages like 'SPSS', and/ or who are new to R), supporting following common tasks when working with data : 1) Reading and writing data between R and other statistical software packages like 'SPSS', 'SAS' or 'Stata' and working with labelled data; this includes easy ways to get and set label attributes, to convert labelled vectors into factors (and vice versa), or to deal with multiple declared missing values etc. 2) Data transformation tasks like recoding, dichotomizing or grouping variables, setting and replacing missing values. The data transformation functions also support labelled data, and all integrate seamlessly into a 'tidyverse'-workflow.

Browse man pages Browse package API and functions Browse package files

AuthorDaniel Lüdecke <d.luedecke@uke.de>
Date of publication2017-04-07 08:11:21 UTC
MaintainerDaniel Lüdecke <d.luedecke@uke.de>
LicenseGPL-3
Version2.4.0
URL https://github.com/strengejacke/sjmisc
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("sjmisc")

Man pages

add_columns: Add or replace data frame columns
add_labels: Add, replace or remove value labels of variables
as_labelled: Convert vector to labelled class
big_mark: Formats large numbers with big marks
copy_labels: Copy value and variable labels to (subsetted) data frames
count_na: Frequency table of tagged NA values
descr: Basic descriptive statistics
dicho: Dichotomize variables
efc: Sample dataset from the EUROFAMCARE project
empty_cols: Return or remove variables or observations that are...
find_var: Find variable by name or label
flat_table: Flat (proportional) tables
frq: Frequencies of labelled variables
get_label: Retrieve variable label(s) of labelled data
get_labels: Retrieve value labels of labelled data
get_na: Retrieve tagged NA values of labelled variables
get_note: Retrieve notes (annotations) from labelled variables
get_values: Retrieve values of labelled variables
grapes-nin-grapes: Value matching
group_str: Group near elements of string vectors
group_var: Recode numeric variables into equal-ranged groups
is_crossed: Check whether two factors are crossed or nested
is_empty: Check whether string, list or vector is empty
is_even: Check whether value is even or odd
is_labelled: Check whether object is of class "labelled"
is_num_fac: Check whether a factor has numeric levels only
lbl_df: Create a labelled data frame
merge_df: Merge labelled data frames
merge_imputations: Merges multiple imputed data frames into a single data frame
read_spss: Import data from other statistical software packages
rec: Recode variables
recode_to: Recode variable categories into new values
rec_pattern: Create recode pattern for 'rec' function
reexports: Objects exported from other packages
ref_lvl: Change reference level of (numeric) factors
remove_all_labels: Remove value and variable labels from vector or data frame
replace_na: Replace NA with specific values
row_sums: Row sums and means for data frames
set_label: Add variable label(s) to variables
set_labels: Add value labels to variables
set_na: Replace specific values in vector with NA
set_note: Add notes (annotations) to (labelled) variables
sjmisc-package: Data Transformation and Labelled Data Utility Functions
split_var: Split numeric variables into smaller groups
spread_coef: Spread model coefficients of list-variables into columns
std: Standardize and center variables
str_contains: Check if string contains pattern
str_pos: Find partial matching and close distance elements in strings
to_character: Convert variable into character vector and replace values...
to_dummy: Split (categorical) vectors into dummy variables
to_factor: Convert variable into factor and keep value labels
to_label: Convert variable into factor with associated value labels
to_long: Convert wide data to long format
to_value: Convert factors to numeric variables
trim: Trim leading and trailing whitespaces from strings
unlabel: Convert labelled vectors into normal classes
var_rename: Rename variables
word_wrap: Insert line breaks in long labels
write_spss: Write data to other statistical software packages
zap_inf: Convert infiite or NaN values into regular NA
zap_labels: Drop, add or convert (non-)labelled values
zap_na_tags: Convert tagged NA values into regular NA

Functions

\%>\% Man page
\%nin\% Man page
add_columns Man page Source code
add_labels Man page Source code
add_labels_helper Source code
as_labelled Man page Source code
as_labelled.data.frame Source code
as_labelled.default Source code
as_labelled.list Source code
as_labelled_helper Source code
atomic_to_fac Source code
big_mark Man page Source code
big_mark.data.frame Source code
big_mark.default Source code
big_mark.list Source code
big_mark_helper Source code
center Man page Source code
com_ft Source code
copy_labels Man page Source code
count_na Man page Source code
count_na_helper Source code
descr Man page Source code
descr_helper Source code
dicho Man page Source code
dicho_helper Source code
dot_names Source code
drop_labels Man page Source code
drop_labels_helper Source code
efc Man page
empty_cols Man page Source code
empty_rows Man page Source code
fill_labels Man page Source code
fill_labels_helper Source code
findInPairs Source code
find_var Man page Source code
flat_table Man page Source code
frq Man page Source code
frq_helper Source code
g_l_helper Source code
g_v_helper Source code
getValLabelAttribute Source code
getVarLabelAttribute Source code
get_dot_data Source code
get_grouped_data Source code
get_grouped_title Source code
get_label Man page Source code
get_labels Man page Source code
get_labels.data.frame Source code
get_labels.default Source code
get_labels.list Source code
get_labels_helper Source code
get_na Man page Source code
get_na.data.frame Source code
get_na.default Source code
get_na.list Source code
get_na_helper Source code
get_note Man page Source code
get_value_range Source code
get_values Man page Source code
get_values.data.frame Source code
get_values.default Source code
get_values.list Source code
get_values_helper Source code
group_helper Source code
group_labels Man page Source code
group_str Man page Source code
group_var Man page Source code
is_completely_labelled Source code
is_crossed Man page Source code
is_empty Man page Source code
is_even Man page Source code
is_even.data.frame Source code
is_even.default Source code
is_even.list Source code
is_even_helper Source code
is_float Source code
is_foreign Source code
is_labelled Man page Source code
is_nested Man page Source code
is_num_fac Man page Source code
is_odd Man page Source code
is_odd.data.frame Source code
is_odd.default Source code
is_odd.list Source code
is_odd_helper Source code
lbl_df Man page Source code
merge_df Man page Source code
merge_df_helper Source code
merge_imputations Man page Source code
print.lbl_df Source code
print.sjmisc.descr Source code
print.sjmisc.frq Source code
read_sas Man page Source code
read_spss Man page Source code
read_stata Man page Source code
rec Man page Source code
rec_helper Source code
rec_pattern Man page Source code
rec_to_helper Source code
recode_to Man page Source code
reexports Man page
ref_lvl Man page Source code
ref_lvl_helper Source code
remove_all_labels Man page Source code
remove_all_labels.data.frame Source code
remove_all_labels.default Source code
remove_all_labels.list Source code
remove_all_labels_helper Source code
remove_empty_cols Man page Source code
remove_empty_rows Man page Source code
remove_labels Man page Source code
remove_labels_helper Source code
replace_columns Man page Source code
replace_labels Man page Source code
replace_na Man page Source code
replace_na_helper Source code
row_means Man page Source code
row_sums Man page Source code
set_label Man page Source code
set_label<- Man page
set_labels Man page Source code
set_labels_helper Source code
set_na Man page Source code
set_na_helper Source code
set_note Man page Source code
set_note<- Man page
shorten_string Source code
sjmisc Man page
sjmisc-package Man page
split_var Man page Source code
split_var_helper Source code
spread_coef Man page Source code
std Man page Source code
std_and_center Source code
std_helper Source code
str_contains Man page Source code
str_pos Man page Source code
to_character Man page Source code
to_dummy Man page Source code
to_dummy_helper Source code
to_fac_helper Source code
to_factor Man page Source code
to_label Man page Source code
to_label_helper Source code
to_long Man page Source code
to_value Man page Source code
to_value_helper Source code
trim Man page Source code
trim.data.frame Source code
trim.default Source code
trim.list Source code
trim_helper Source code
unlabel Man page Source code
var_labels Man page Source code
var_rename Man page Source code
word_wrap Man page Source code
write_data Source code
write_sas Man page Source code
write_spss Man page Source code
write_stata Man page Source code
zap_inf Man page Source code
zap_labels Man page Source code
zap_labels_helper Source code
zap_na_tags Man page Source code
zap_na_tags_helper Source code
zap_unlabelled Man page Source code
zap_unlabelled_helper Source code

Files

inst
inst/CITATION
inst/doc
inst/doc/design_philosophy.html
inst/doc/intro_sjmisc.R
inst/doc/exploringdatasets.Rmd
inst/doc/labelleddata.Rmd
inst/doc/exploringdatasets.html
inst/doc/labelleddata.html
inst/doc/labelleddata.R
inst/doc/exploringdatasets.R
inst/doc/design_philosophy.Rmd
inst/doc/intro_sjmisc.Rmd
inst/doc/design_philosophy.R
inst/doc/intro_sjmisc.html
NAMESPACE
NEWS
NEWS.md
data
data/efc.RData
R
R/S3-methods.R
R/add_columns.R
R/recode_to.R
R/remove_all_labels.R
R/row_sums.R
R/group_str.R
R/is_crossed.R
R/to_dummy.R
R/count_na.R
R/big_mark.R
R/frq.R
R/to_factor.R
R/as_labelled.R
R/read_write.R
R/notin.R
R/merge_df.R
R/descr.R
R/get_labels.R
R/copy_labels.R
R/replace_na.R
R/var_labels.R
R/remove_labels.R
R/set_na.R
R/is_num_fac.R
R/drop_labels.R
R/get_na.R
R/merge_imputations.R
R/is_labelled.R
R/str_contains.R
R/is_empty.R
R/is_even.R
R/find_var.R
R/get_values.R
R/set_labels.R
R/get_label.R
R/get_note.R
R/group_var.R
R/rec.R
R/helpfunctions.R
R/to_value.R
R/trim.R
R/dicho.R
R/std.R
R/prop_table.R
R/set_label.R
R/rec_pattern.R
R/efc.R
R/str_pos.R
R/word_wrap.R
R/to_label.R
R/unlabel.R
R/to_long.R
R/zap_labels.R
R/ref_lvl.R
R/fill_labels.R
R/split_var.R
R/add_labels.R
R/spread_coef.R
vignettes
vignettes/exploringdatasets.Rmd
vignettes/labelleddata.Rmd
vignettes/design_philosophy.Rmd
vignettes/intro_sjmisc.Rmd
README.md
MD5
build
build/vignette.rds
build/partial.rdb
DESCRIPTION
man
man/is_num_fac.Rd
man/group_var.Rd
man/lbl_df.Rd
man/zap_na_tags.Rd
man/merge_imputations.Rd
man/to_long.Rd
man/get_values.Rd
man/to_dummy.Rd
man/set_note.Rd
man/to_character.Rd
man/set_na.Rd
man/as_labelled.Rd
man/set_label.Rd
man/sjmisc-package.Rd
man/frq.Rd
man/group_str.Rd
man/std.Rd
man/is_crossed.Rd
man/flat_table.Rd
man/read_spss.Rd
man/to_factor.Rd
man/get_labels.Rd
man/is_empty.Rd
man/add_columns.Rd
man/is_labelled.Rd
man/descr.Rd
man/ref_lvl.Rd
man/str_contains.Rd
man/replace_na.Rd
man/word_wrap.Rd
man/to_label.Rd
man/rec.Rd
man/get_note.Rd
man/efc.Rd
man/big_mark.Rd
man/row_sums.Rd
man/empty_cols.Rd
man/split_var.Rd
man/grapes-nin-grapes.Rd
man/reexports.Rd
man/var_rename.Rd
man/merge_df.Rd
man/spread_coef.Rd
man/str_pos.Rd
man/rec_pattern.Rd
man/get_na.Rd
man/trim.Rd
man/find_var.Rd
man/zap_labels.Rd
man/zap_inf.Rd
man/unlabel.Rd
man/get_label.Rd
man/recode_to.Rd
man/count_na.Rd
man/write_spss.Rd
man/remove_all_labels.Rd
man/copy_labels.Rd
man/to_value.Rd
man/dicho.Rd
man/add_labels.Rd
man/is_even.Rd
man/set_labels.Rd
sjmisc documentation built on May 20, 2017, 2:10 a.m.