Man pages for fcocquemas/hfty.helpers
Helper functions (paths, input/output, cloud...)

add_extensionAdds file extension to file names
basenameOverloads basename with option to remove extensions
change_extensionChange file extension, or add if it is missing
check_ec2_confCheck configuration list, and get environment variables if...
check_s3_confCheck configuration list, and get environment variables if...
count_byCount number of observations in a data.table summarized by a...
create_spot_instancesShortcut function for launching EC2 spot instances
dirnameOverloads dirname with option to remove URL scheme...
extensionGet file extension from file name
extract_ymdFind and extract date from string with regular expression
factor_columnTurn column to factor by reference
file_pathExtends the file.path function to avoid doubled trailing...
filter_countCount observations dropped from data.table by running expr...
get_hostnameGet hostname from URL
get_instances_ipCollect IP addresses from EC2 instances
get_pathGet path from URL
get_url_schemeGet URL scheme ('http://', etc.)
list_filesWraps list.files with better defaults (all files, full paths,...
list_running_instancesList running instances
make_list_of_sizePad list to a certain size with NAs or another value
msgExtends message with quiet option You may use multiple...
n_splitSplit vector in n parts of equal size (or close)
read_csv_in_zipRead CSV inside of zip file using data.table's fread Works...
remove_extensionRemoves file extension, keeping the path if provided
s3_list_bucketList S3 bucket content into data.table
s3_load_folderLoad and combine S3 folder of tabular files
s3_object_existsCheck if object exists in cloud
s3_readRead S3 file to R guessing type from extension
s3_saveSave R object to S3 guessing type from extension
s3_save_dt_folderSave data.table to S3 folder split on specific variable(s)
save_dt_folderSave data.table to folder split on specific variable(s)
save_rdsSave to rds using multiple threads (requires xz or pixz)
third_friday_of_monthFind third Friday of month of a given date
fcocquemas/hfty.helpers documentation built on Feb. 13, 2023, 7:25 a.m.