Skip to contents

All functions

NA_logLik_
An NA-equivalent value for logLik
add_hash_to_file()
Create a string of the filename with its hash as an attribute to allow change detection in drake
as.data.frame(<power.htest>)
Convert a power calculation to a table for reporting.
as_gg_list()
Make a gg_list object (a list of ggplots) for knit_printing
bayesian_decision_figure()
Make a figure describing the Bayesian decision-making based on a range of lower and upper reference values
check_expected_cols()
Verify that a data.frame has the expected columns present
coalesce_same()
Replace missing values with non-missing while confirming that non-missing values are the same.
comma_and()
Generate a list of text grammatically correctly
correct_case()
Correct the case of a vector to be in a preferred case
cumsum_reset()
Perform a cumulative sum resetting to zero whenever a reset value is found.
dated_warning_or_error()
Give a warning or error based on the current date
duplicated_including_first()
Determine duplicate elements (including the first duplicate)
emax_fun() inverse_emax()
Compute the Emax or its inverse.
extract_ggplot_legend()
Extract the legend from a ggplot2 object
filter_list()
Filter a list of data.frames
filter_maybe()
Filter if it works, otherwise, do nothing
find_less()
Find the choice that is less than a value
find_sub_table()
When data are provided as blocks of tables within a larger data set, extract those sub-tables as a list.
fun_no_na() max_no_na() min_no_na() median_no_na() mean_no_na() sd_no_na()
Perform an operation on a vector that may be empty or all NA with controlled output.
get_data_manage_standard_cols()
Get a vector of column names expected for a dataset.
grepl_multi_pattern()
Run grepl on a vector of patterns.
gsub_multi_pattern()
Substitute from a vector of patterns with a single replacement
impute_dtc() impute_dtc_ntod()
Impute dates and times when data are missing.
impute_dtc_helper_single_datetime() impute_dtc_helper_single_date() impute_dtc_helper_median_time() impute_dtc_helper_time_ntod()
Impute the date and time within a single study/subject/nominal time where there is only one date/time combo in the interval.
impute_dtc_simplify_time()
Confirm that the value looks like a time, and remove fully unknown times and zero seconds
impute_sd() impute_sd_sd() impute_sd_cv() impute_sd_se() impute_sd_ci() impute_sd_iqr() impute_sd_range()
Impute standard deviation from measures of dispersion.
impute_time_act_nom()
Impute actual time using nominal time when actual is unavailable
interesting_cols()
Find the columns that have more than one value
intermingle_list()
Intermingle elements from a set of lists
join_control() join_many_to_one() join_one_to_one()
Perform join where the outcome of the join is verifed to match an expected pattern.
knit_print(<formula>)
Generate LaTeX math from an R formula
knit_print(<gg>)
Print a ggplot object with space around it
knit_print(<gg_list>)
Print a list of ggplot objects with space around each
knit_print(<sessionInfo>)
Print the sessionInfo in a way that is usable in knitr/rmarkdown reports
latex_reference() latex_label() latex_label_clean() latex_label_first_last()
Generate a latex label or reference to the label
logLik.xpose_data logLik.NULL logLik.logical logLik.try-error
Extract Log-Likelihood
make_ci()
Make a confidence interval from a point estimate and standard error.
make_loq()
Extract numeric, below/above the lower/upper limits of quantification (LLQ and ULQ), and text data from a vector.
make_nested_id()
Generate a numeric identifier attempting to be stable to changes within groups.
make_tab_models_tested()
Create a tibble of tested models
median_character()
Return the median of a character vector
mindiff()
Find the minimum difference between a vector and a set of choices.
mindiff_after()
Return the minimum of the differences of x for the first value after the choices.
nonmem_column_order()
Output a data.frame with numeric columns on the left.
number_patterns
Regular expression patterns for numbers
paste_missing()
Concatenate strings dropping missing values
patch_data()
Patch one data set using another
pdf_combine_multi()
Combine multiple PDF files including optional selection of pages.
plot_grid_one_legend()
Extract the legend from the first figure, remove the legends from all plots, and put the legend at the end.
realize_addl_single()
Expand II and ADDL with NONMEM-like methods for a single subject
remove_ggplot_legend()
Remove the legend(s) from a ggplot
replace_synonym()
Replace values in a character string with their synonym
replace_synonym_list()
Use a regular expression to choose the synonyms in a list to replace in a data.frame.
search_fun_edge()
Go to the edge
search_fun_values_or_edge()
Go to a value or the edge
seq_exp()
Sequence generation on an expoential scale
set_baseline()
Set a single baseline value given input data.
setdiff_bidir()
Bidirectional setdiff rather than the default unidirectional version
single_value()
Ensure that a vector has only a single value throughout.
sprintf_data_frame() sprintf_data_frame_single()
Create new columns in a data.frame with sprintf results
translate_value()
Convert a value from something old to something new (using gsub)
unicode_to_ascii()
Convert from Unicode to ASCII