sjmisc-package |
Data Transformation and Labelled Data Utility Functions |
add_labels |
Add or replace value labels of variables |
add_labels<- |
Add or replace 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 |
dicho |
Dichotomize variables |
drop_labels |
Drop labels of zero-count values |
efc |
Sample dataset from the EUROFAMCARE project |
empty_cols |
Return or remove variables or observations that are completely missing |
empty_rows |
Return or remove variables or observations that are completely missing |
fill_labels |
Add missing value labels to partially labelled vector |
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 |
group_labels |
Create labels for recoded groups |
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 |
is_empty |
Check whether string or vector is empty |
is_even |
Check whether value is even |
is_labelled |
Check whether object is of class "labelled" |
is_nested |
Check whether two factors are nested |
is_num_fac |
Check whether a factor has numeric levels only |
is_odd |
Check whether value is odd |
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_sas |
Import SAS dataset as data frame into R |
read_spss |
Import SPSS dataset as data frame into R |
read_stata |
Import STATA dataset as data frame into R |
rec |
Recode variables |
rec<- |
Recode variables |
recode_to |
Recode variable categories into new values |
rec_pattern |
Create recode pattern for 'rec' function |
ref_lvl |
Change reference level of (numeric) factors |
ref_lvl<- |
Change reference level of (numeric) factors |
remove_all_labels |
Remove value and variable labels from vector or data frame |
remove_empty_cols |
Return or remove variables or observations that are completely missing |
remove_empty_rows |
Return or remove variables or observations that are completely missing |
remove_labels |
Remove value labels from variables |
remove_labels<- |
Remove value labels from variables |
replace_labels |
Add or replace value labels of variables |
replace_labels<- |
Add or replace value labels of variables |
replace_na |
Replace NA with specific values |
replace_na<- |
Replace NA with specific values |
set_label |
Add variable label(s) to variables |
set_label<- |
Add variable label(s) to variables |
set_labels |
Add value labels to variables |
set_labels<- |
Add value labels to variables |
set_na |
Replace specific values in vector with NA |
set_na<- |
Replace specific values in vector with NA |
set_note |
Add notes (annotations) to (labelled) variables |
set_note<- |
Add notes (annotations) to (labelled) variables |
sjmisc |
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 |
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 with associated value labels |
to_dummy |
Split (categorical) vectors into dummy variables |
to_factor |
Convert variable into factor and keep value labels |
to_label |
Convert variable into factor and replace values 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_labels |
Add variable label(s) to variables |
var_rename |
Rename variables |
word_wrap |
Insert line breaks in long labels |
write_sas |
Write content of data frame to SAS-file |
write_spss |
Write content of data frame to SPSS sav-file |
write_stata |
Write content of data frame to STATA dta-file |
zap_labels |
Convert (non-)labelled values into NA |
zap_na_tags |
Convert tagged NA values into regular NA |
zap_unlabelled |
Convert (non-)labelled values into NA |