Man pages for AndreSjuve/dretools
Suite of handy functions

add_small_legendAdd small legend to ggplot
add_starsAdd stars to statistical estimate
alligator_removerRemove alligator signs
ann_monthly_retAnnualise monthly returns
ann_sdAnnulise standard deviation
calc_log_returnCompute logarithmic net returns for a vector
calc_simple_returnCompute simple net returns for a vector Used in scripts:
camel_to_snakeConvert camel case words to snake case words
compute_returnCompute simple or logarithmic returns
conditional_dropDrop columns from data frame if they exist
cumretCompute the cumulative product of a vector
divide_cols_byDivide a set of columns by a number
filter_na_dfFilter away NA rows for multiple columns at at time
find_closest_dateFind the Closest Date
gen_missing_datesExtract missing dates in a monthly sequence
gen_month_endsSequence of monthly end dates
grapes-nin-grapesOpposite of in function
has_duplicatesAre there duplicate values in your data?
has_group_duplicatesCheck if your data frame contains duplicate rows by group
impute_missing_valuesInterpolate missing values using mean
impute_naImpute missing value based on mean
lag_colsLag multiple columns at at time
last_dayFind last day of month
left_join_with_nullHandle a data frame being NULL when merging
length_naCalculate length of NAs in a vector
look_ncols_excelLook up the number of columns in an excel sheet
path_delistDelist paths
pipePipe operator
push_to_month_endConvert date to the last day of the month
read_colnamesPull the column names from a data frame stored in fst format
read_nrowsPull the number of rows from a data frame stored in fst...
standardise_characterStandardise a character string
str_remove_afterRemove everything after the first separator in a string
str_remove_decimalsRemove decimals from large numbers in string
str_remove_decimals_allRemove decimals from large numbers in multiple long strings
theme_wss_latexCustom Latex theme
unlist_datesConvert dates in list (data frame or list) to vector of dates
AndreSjuve/dretools documentation built on Dec. 4, 2024, 3:12 a.m.