Man pages for LukasWallrich/rNuggets
Useful Helper Functions for (Academic) Data Analysis

add_classAdd class
add_package_snippetsExport package-specific R snippets
apa_cor_tableCreate a correlation table with summary statistics in APA...
cat_var_tableCreate a summary table for categorical variables and their...
cat_var_table_miCreate a summary table for categorical variables and their...
clip_excelCopy data to clipboard to paste into Excel
cor_matrixCalculates correlation matrix with significance tests and...
cut_pCut a continuous variable into given proportions
dot-floor_ceilingHelper function to round up and down in turn
dot-is.numeric_colTests whether a column in df, specificied by string, is...
dummy_codeDummy code variable
dump_to_clipDump objects to clipboard (to transfer them between R...
fmt_pFormat p-value in line with APA standard (no leading 0)
fmt_pctFormat fraction as percentage string
gcd.hfGeosedic distance between two points.
get_pairwise_lettersGet letters to indicate results of multiple...
get_rename_tribblesGet code to generate tibbles to rename categorical variables...
ggsave_showSave ggplot-graph and show in folder
glance.miraGlance a multiple imputation 'mice' pooled object
glue_warnglue::glue wrapper that warns when items evaluate to NULL
gt_add_plotsAdd plots into gt table column
gt_apa_styleHelper function to style gt-table in APA style This function...
line_to_vectorTurn line of items separated by spaces into c() command
lm_stdlm() with standardised continuous variables
lm_with_stdCreates a summary table comparing standardised and...
make_mult_scalesCreates multiple scales by calculating item means and returns...
make_scaleCreates a scale by calculating item mean and returns...
mira.lm_F_testReport F-test for significance of multiply imputed lm models
na_shareCalculate share of NA-values in vector
paired_t_test_dPairwise t.test with Cohen's d
pairwise_t_test_miPairwise t-tests() on multiply-imputed data (accepts survey...
pairwise_t_testsPairwise t-tests() returned in tidy dataframe
plot_distributionsCreate distribution charts to show in descriptive table
plot_mediationPlot mediation model with one or more mediators
polr_with_stdCreates a summary table comparing standardised and...
p_pct-deprecatedFormats a number to print as percentage
quickpred_extCreate mice predictorMatrix including unordered factors...
reexportsObjects exported from other packages
rename_cat_variablesRename variables and/or their levels
rNuggetsA set of helper functions for statistics and data analysis
rNuggets-deprecatedDeprecated functions in package 'rNuggets'.
round_Round function that returns trailing zeroes
round_dfRound all numeric columns in dataframe
run_lmlm() for pipes - data as first argument
scale_blankScales a vector and returns it without attributes
setup_analysis_projectSet up analysis project folder and script files
sigstarsSignificance stars for p-values
simplify_factor-deprecatedCollapse factor levels into "Other"
spearman_brownCalculate Spearman-Brown reliability for two-item scale
summary.rN_lmSummary of an lm object created with run_lm() wrapper
survey_cor_matrixCreate a correlation matrix from survey data with summary...
svy_cohen_d_pairt.test for survey object with Cohen's d
svy_group_meansShow group counts and group means in srvyr data
svy_make_scaleCreates scale by calculating item mean and returns...
svy_pairwise.t.testPairwise t.tests with effect sizes and survey weights
tidy.expTidy function to exponentiate coefficients
tidy.miraTidy multiple imputation models created with 'mice'
tidy.polr_pTidy polr with added p-values
tidy.rN_stdHelper function to enable tidy.lm to be used on lm_std()...
to_tribbleConverts a tibble to tribble code
t_test_mit-test() on multiply-imputed data (accepts survey weights)
tunnelTunnel a dataframe through a function for side effects
within_kmIdentify rows of dataframe with observations in certain...
wtd_cor_matrix_miCreate a correlation matrix from multiply imputed data with...
wtd_group_means_miShow group counts and group means in multiply imputed and...
LukasWallrich/rNuggets documentation built on Aug. 26, 2022, 11:03 a.m.