Man pages for fjoe88/d8ahelper
Opinionated Helper Functions For Data Analysis

add_empty_rowsAppend empty rows to a dataframe to make row number a target...
add_wmyAdd week, weekday, month, year columns based on datetime...
any_dupsOutput summary of duplicated rows by given keys
cap_strCapitalize the first letter of each word in the string
clean_by_idRemove rows where id columns are all missing, and rows where...
clear_dirgiven a directory, delete files given the regex pattern...
coalesce_joinCoalescence join lhs x and rhs y data frames, for each...
contain_valueexamine if a data holder contains 'value' in a pre-defined...
conv_chr_to_fctconvert all columns of character type to factor type
conv_fct_to_chrconvert all columns of factor type to character type
copy_uniqueCopy unique values to clipboard.
corr_to_dfFilter high corr features and output in tidy format
count_linesCount number of lines without using read_csv
days_to_dateUse number of days past 1970-01-01 to indicate date
decode_colSister func to encode_col returns a data frame with original...
decryptA wrapper function to decrypt file using a key
df_to_txtConvert dataframe to text output
encode_colReplace column names with alpha-numeric sequences, returns a...
encryptA wrapper function to encrypt file using a key
ff_quantileFunction factory to create nth quantile function
file.copy.content.onlycopy files to another directory
fill_colsfind columns that has at minimum 'th' number of non-NA values...
fill_mapa wrapper function to 'gstat::gstat' function to use a...
fill_missing_as_naIdentify missing pattern or 'NA' and replace with NAs
format_datetimeFormat datetime columns to a specified format
format_numFormat numbers to limit digits after decimal point
format_to_percentageConvert integer/floating point number format to percentage...
fread2wrapper function to data.table::fread to convert blank cells...
from_excelWrapper function for convenient copy from Excel into a data...
gen_keyA wrapper function for sodium::keygen to generate, convert...
get_dir_sizeget directory size
get_idget id from encoded obj, sister func to encode_col, retrieve...
get_modeGet the mode of a vector
get_nameget names of encoded obj, sister func to encode_col, retrieve...
hclust_wssHiearchical clustering with for within cluster SSs screeplot...
headtailA quick glance into a dataframe combining n head and tail...
insert_nasInsert(inject) NAs as replacement randomly to a data
insp_dirPerform a non intrusive inspection of a given directory and...
is_fct_or_chrcheck if is factor or character
lapply_preserve_nameslapply wrapper but preserve object names as the name suggests
list_dir_sizeslist directory sizes
list_files_fwd_slashwrapper function list.files to allow coppied windows path...
load_csvA custom way to load CSV files
load_filesload files paths in specified location
map_preserve_namesmap but preserve object names
map_preserve_names_use_futuremap but preserve object names, use future to add parallel...
missing_as_naSister func to na_as_missing, replace cells with NAs if match...
model_lmRun lm model and print a curated summary output
move_leftMove column or columns to far left hand side of a dataframe
multi_joinWrapper function to coalesce_join, join together a list of...
multiplotlist of ggplot objects into one plot
na_as_missingIdentify NAs and empty cells that fit a pattern and replace
open_encryptedA wrapper function for the workflow of decrypt, source and...
plot_boxplotBoxplot with confidence intervals and summary statistics such...
puff_my_dfArtificially increase the number of rows to make up any...
remove_duplicatesRemove duplicated rows of the original data frame, or a...
remove_empty_rowsRemove row(s) if all values are NAs
remove_high_corr_featuresWrapper function of caret::findCorrelation: find and remove...
rm_dup_cols_in_a_listTaken a list of data frames, check each column and remove...
rm_dups_w_less_dataRemove duplicated rows by leaving only 1 observation per each...
rm_naRemove NAs given a vector
rm_single_unique_colRemove column(s) that contain a single unique value
save_csvA custom way to output CSV files
save_csv_from_a_listA wrapper function of save_csv that applies to a list of data...
secs_to_dateConvert numerically converted format POSIXct time back to...
str_findwrapper function for locate a string based on regex leading...
subset_by_quantileFilter column by removing points beyond top and(or) bottom...
sum_colSummarize a data frame with concise and useful summary...
sum_dfSister function to sum_col and sum_row, returns a list of...
sum_missingSummary statistics of top n missing value columns
sum_rowGenerate row-wise summary for missing and unique values
sum_tableGiven 2 columns, summarize counts of each unique value-pair...
trim_wsRemove leading and trailing white spaces
trim_ws_dfRemove leading and trailing whitespaces that are within any...
unique_rowExtract unique rows combinations and show row counts
write_fwfvia @haozhu233 (on GitHub) write fixed width format text file
fjoe88/d8ahelper documentation built on Feb. 6, 2023, 7:55 a.m.