Man pages for martinctc/surveytools
Useful Support Functions for Survey Analysis

any_xFunction that returns TRUE/FALSE if value exists in x, but...
append_to_listAppend an item to a list dynamically
apply_rowApply a function rowwise, selecting variables with...
as_npsConvert numeric variable to NPS variable
as_nps_catConvert numeric variable to NPS categorical variable
as_percentConvert as percent (string)
box_itConvert ordinal variables into binary variables by "boxing"
CAGRCalculate CAGR
calc_pc_loglinCalculate percentage impact from coefficients of a log-linear...
calc_weightsCalculate (simple) weights based on the proportion of another...
categoriseConvert numeric variable into categorical variable
char_to_labConvert character variable to labelled integer variable
chr_to_varConvert a string / character variable into a labelled double...
clean_stringsClean strings so that they can be used as variable names or...
copy_dfCopy a data frame to clipboard for pasting in Excel
cor_to_dfConvert correlation matrix into a tidy data frame
create_named_listCreate a named list object with two vectors
data_dictCreate a Data Dictionary from a data frame with Variable and...
extract_fa_loadsFunction to create a loadings file from the factanal() output
extract_vallabReturn value labels as tibble
labelled_quantileConvert a numeric into a quantile categorical variable,...
lab_to_charConvert labelled double variable to character variable
likert_convertConvert a Likert scale from one scale to another
likert_reverseReverse a Likert scale
look_upReplace x values with corresponding values using a key
maxminMax-Min Scaling Function
pipePipe operator
read_dfRead in a data frame in the clipboard, copied from Excel
recode_vallabRecode value labels based on numeric code
remove_na_onlyRemove all columns which contain only NAs Optimised for...
remove_zero_onlyRemove all columns which contain only zeros Optimised for...
replace_na_rangeReplace NAs randomly from a selected range with replacement
run_hclustA wrapper function to run hierarchical clustering
sav_to_rdsSerialise a SPSS file to RDS
set_vallSet value labels
set_varlSet variable labels
split_ttSplit the data into a simple training and testing set
squishReturns a single-length vector if all values in vector are...
superspreadCreates dummy variables from multiple categorical variables....
superspread_countConvert single-code column(s) into "multiple choice" formats,...
superspread_fillConvert single-code column(s) into "multiple choice" formats,...
timed_fnCreate file name with time stamp
ttest_npsPerforms a t-test on NPS
varl_tbCreate tidy data frame with variable and variable labels
wrap_textWrap text based on character threshold
martinctc/surveytools documentation built on Nov. 21, 2024, 10:48 p.m.