Man pages for shane-kercheval/rtools
Package providing R tools and wrappers

any_duplicatedwrapper arround 'any(duplicated(.x))'
any_missingwrapper arround 'stop_if(any(is.na(.x)))'. If...
append_list'append' appears not to work with dates any longer... in...
private__time_series_date_break_formatreturns date break format based on date floor
rt_add_year_month_factorsas '[.column]_year' and '[.column]_month' factor variables to...
rt_are_dataframes_equalcompares two dataframes and returns TRUE if they are both...
rt_are_dataframes_equal_from_filecompares two dataframes, one of them will be loaded from the...
rt_are_numerics_equalChecks if two numbers are equivalent out to 'n' decimals...
rt_as_year_qtr_formatonly returns a value for dates matching quarter so that when...
rt_attribution_pivot_longertransforms attribution dataframe to long format
rt_campaign_add_path_idadds '.path_id' column to dataframe. Each conversion step...
rt_campaign_to_markov_pathsadds converts campaign data to path data in the format...
rt_ceiling_nearest_xReturns the ceiling of the **absolute value** of 'y', rounded...
rt_clickstream_to_attributionTransforms .clickstream_data into the expected format for...
rt_colorsHex colors vector
rt_colors_good_badHex colors vector representing "good" (green) and "bad" (red)
rt_difftime_numericreturns numeric value of difftime (date_last - date_first)
rt_equal_include_naThere are times when you want to filter/match any value,...
rt_explore_categoric_summaryreturns a dataframe containing summary statistics for...
rt_explore_correlationsreturns a matrix containing of correlations
rt_explore_numeric_summaryreturns a dataframe containing summary statistics for numeric...
rt_explore_plot_aggregate_2_numericsreturns a eih
rt_explore_plot_boxplotreturns a boxplot of 'variable', potentally grouped by...
rt_explore_plot_categoric_heatmapreturns a heat map with histogram on top/side showing...
rt_explore_plot_categoric_numeric_aggregationreturns a graph for categoric/numeric variables based on the...
rt_explore_plot_cohorted_adoptioncreates a cohorted option graph that e.g. shows the...
rt_explore_plot_conversion_ratesshows conversion rates (y-axis) of a particular cohort based...
rt_explore_plot_correlationsreturns a heatmap of correlations
rt_explore_plot_histogramreturns a histogram of 'variable'
rt_explore_plot_numeric_heatmapreturns a heat map with histogram on top/side showing...
rt_explore_plot_scatterreturns a scatterplot of 'variable' (numeric, x-axis)...
rt_explore_plot_time_seriesreturns a time-series plot
rt_explore_plot_value_totalsreturns a barchart of the unique value counts for a given...
rt_explore_value_totalsreturns either a *count* of the unique values of 'variable'...
rt_floor_date_factorreturns an ordered factor of the date vector
rt_funnel_plotreturns a funnel plot
rt_geometric_meanCalculates the geometric mean of a vector of numbers
rt_get_any_touch_attributiongives each step credit for the number of conversions that...
rt_get_channel_attributionwrapper around ChannelAttribution::markov_model &...
rt_get_cohorted_conversion_ratesshows conversion rates (y-axis) of a particular cohort based...
rt_get_colors_from_valuesReturns the colors based on the alphabetical order of the...
rt_get_date_fieldsreturns whether or not a value is NULL, NA, or NAN
rt_get_vectorreturns a dataframe's column as a vector
rt_get_year_month_factorsreturns year and month factors in list
rt_group_by_all_ofwrapper for group_by for string variables
rt_is_null_na_nanreturns whether or not a value is NULL, NA, or NAN
rt_markov_modelwrapper around ChannelAttribution::markov_model
rt__mock__attribution_to_clickstreamtransforms .campaign_data into structure that is based on...
rt_params_to_vectorconverts multi-argument values into flattened vector
rt_peaklike 'head()' but converts to a data.frame so rows/columns...
rt_plot_2_proportions_testplots the proportions with confidence intervals according to...
rt_plot_channel_attributionwrapper around ChannelAttribution::markov_model &...
rt_plot_colorsPlots the colors from 'rt_colors()'
rt_plot_markov_removal_effectsgraphs removal effects returned by rt_markov_model (i.e....
rt_plot_multinom_cisplots the proportions with confidence intervals according to...
rt_plot_proportionsplots the proportions with confidence intervals according to...
rt_plot_regression_variance_explainedPlot the percent of variance explained for a given regression...
rt_plot_sankeycreates a sankey diagram based on a data-frame containing...
rt_pretty_axesformat for axes
rt_pretty_axes_percentformat for axes
rt_pretty_datasetChanges string column values and column names to "pretty"...
rt_pretty_date_labelformats a date
rt_prettyNumwrapper for base 'prettyNum'
rt_pretty_numbers_longFormats numeric values
rt_pretty_numbers_shortFormats numeric values
rt_pretty_percentformats a percent
rt_pretty_textChanges strings to "pretty" strings. Ignores other datatypes...
rt_regressionBuilds a (string) formula to pass to lm
rt_regression_build_formulaBuilds a (string) formula to pass to lm
rt_regression_get_ind_var_optionsResidual vs. Predicted plot
rt_regression_plot_actual_vs_predictedActual vs. Predicted plot
rt_regression_plot_residual_vs_predictedResidual vs. Predicted plot
rt_regression_plot_residual_vs_variableResidual vs. Predicted plot
rt_remove_valreturns the vector ('vec') without the specified value...
rt_select_all_ofwrapper for change in DPLYR where we cannot send vector of...
rt_setsubsetreturns TRUE if 'set1' is a subset of 'set2'. Returns 'FALSE'...
rt_stopifLike 'stopifnot', but stop 'stopifnot' stops if the...
rt_str_collapseSee example
rt_ts_auto_regressionadds lag variables, performs regrssion & forecasting,...
rt_ts_create_lagged_datasetreturns a new dataset containing the lagged values for...
rt_ts_get_friendly_time_ticksReturns friendly axis ticks. e.g. for monthly it returns a...
rt_ts_get_time_periodrather than e.g. 2007.333 for May of 2007 that 'time()'...
rt_ts_is_multi_variabledetermines if a time-series dataset contains a single...
rt_ts_is_single_variabledetermines if a time-series dataset contains a single...
rt_ts_lm_build_formulareturns a forumla string to pass 'tslm()"
rt_ts_plot_time_seriesplots a time-series dataset
rt_value_countsreturns a count of the values in a vector; the object...
stop_ifIf any of the expressions are TRUE, 'stop' is called
stop_if_anywrapper arround 'stop_if(any(duplicated(.x)))'
stop_if_any_duplicatedwrapper arround 'stop_if(any(duplicated(.x)))'
stop_if_any_missingWrapper around 'stop_if(any_missing(.x,...
stop_if_not_identicalWrapper around 'stopifnot(identical(.x, .y))'
test_save_plotdeletes the file/plot if it exists, saves the plot, and...
shane-kercheval/rtools documentation built on July 7, 2022, 8:31 a.m.