sjmisc-package |
Data Transformation and Labelled Data Utility Functions |
%nin% |
Value matching |
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 |
center |
Standardize and center variables |
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 |
drop_labels |
Drop, add or convert (non-)labelled 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 |
Drop, add or convert (non-)labelled values |
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 |
Recode numeric variables into equal-ranged 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 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_nested |
Check whether two factors are crossed or nested |
is_num_fac |
Check whether a factor has numeric levels only |
is_odd |
Check whether value is even or 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 data from other statistical software packages |
read_spss |
Import data from other statistical software packages |
read_stata |
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 |
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 |
Add, replace or remove value labels of variables |
replace_columns |
Add or replace data frame columns |
replace_labels |
Add, replace or remove value labels of variables |
replace_na |
Replace NA with specific values |
row_means |
Row sums and means for data frames |
row_sums |
Row sums and means for data frames |
set_label |
Add variable label(s) to variables |
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 |
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 |
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 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 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 data to other statistical software packages |
write_spss |
Write data to other statistical software packages |
write_stata |
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 |
zap_unlabelled |
Drop, add or convert (non-)labelled values |