Skip to contents

# Package index

## All functions

`FreesearchR_palette()`
  Use the FreesearchR colors
`FreesearchR_theme()`
  Custom theme based on unity
`add_class_icon()`
  Convert class grid column to icon
`add_sparkline()`
  Add sparkline to datagrid
`align_axes()`
  Aligns axes between plots
`all_but()`
  Select all from vector but
`append_column()`
  Append a column to a data.frame
`append_list()`
  Append list with named index
`apply_labels()`
  Apply a named label vector to a data frame
`argsstring2list()`
  Convert string of arguments to list of arguments
`baseline_table()`
  Print a flexible baseline characteristics table
`class_icons()`
  Get data class icons
`clean_common_axis()`
  Extract and clean axis ranges
`clean_date()`
  Attempts at applying uniform date format
`clean_sep()`
  gsub wrapper for piping with default values for separator substituting
`collapse_spaces()`
  Substitue spaces/tabs with single space excluding text within quotes
`columnSelectInput()`
  A selectizeInput customized for data frames with column labels
`compare_missings()`
  Pairwise comparison of missings across covariables
`contrast_text()`
  Contrast Text Color
`corr_pairs_validate()`
  Correlation pairs validation
`correlation_pairs()`
  Determine significant correlations in the data set
`create_column_ui()` `create_column_server()` `allowed_operations()` `modal_create_column()` `winbox_create_column()`
  Create new column
`create_baseline()`
  Create a baseline table
`create_log_tics()`
  Create summetric log ticks
`create_overview_datagrid()`
  Create a data overview datagrid
`cut_variable_ui()` `cut_variable_server()` `modal_cut_variable()`
  Module to Convert Numeric to Factor
`cut_methods()`
  Library of cut methods with descriptions
`cut_var()`
  Extended cutting function with fall-back to the native base::cut
`data_correlations_ui()` `data_correlations_server()`
  Data correlations evaluation module
`data_missings_ui()` `data_missings_server()`
  Data correlations evaluation module
`data_visuals_ui()` `data_visuals_server()` `create_plot()` `plot_bar_single()` `plot_box()` `plot_box_single()` `plot_hbars()` `plot_ridge()` `sankey_ready()` `plot_sankey()` `plot_scatter()` `plot_violin()`
  Data correlations evaluation module
`data_summary_ui()` `data_summary_server()`
  Data summary module
`data_description()`
  Ultra short data dascription
`data_summary_gather()`
  Data summary for printing visual summary
`data_type()`
  Data type assessment.
`data_type_filter()`
  Filter function to filter data set by variable type
`data_types()`
  Recognised data types from data_type
`default_format_arguments()`
  Defaults qmd formats
`default_parsing()`
  Default data parsing
`detect_delimiter()`
  Detect delimiters in string based on allowed delimiters
`dim_change_call()`
  Dimensions validation
`drop_empty_event()`
  Drop empty events from REDCap export
`expression_string()`
  Deparses expression as string, substitutes native pipe and adds assign
`extract_labels()`
  Extract column labels from a data frame
`factor_new_levels_labels()`
  Simple function to apply new levels and/or labels to factor
`factorize()`
  Factorize variables in data.frame
`file_export()`
  Title
`format_writer()`
  Merges list of named arguments for qmd header generation
`get_data_packages()`
  Get packages containing datasets
`get_dimensions()`
  Extension of the helper function from datamods
`get_fun_options()`
  Get the function options based on the selected function description
`get_label()`
  Print label, and if missing print variable name for plots
`get_list_elements()`
  Subset elements from list of lists
`get_plot_options()`
  Get the function options based on the selected function description
`get_var_icon()`
  Easily get variable icon based on data type or class
`getfun()`
  Wrapper function to get function from character vector referring to function from namespace. Passed to 'do.call()'
`gg_theme_export()`
  GGplot default theme for plotting export objects
`gg_theme_shiny()`
  GGplot default theme for plotting in Shiny
`ggeulerr()`
  Area proportional venn diagrams
`grepl_fix()`
  Matches pattern to vector based on match type
`if_not_missing()`
  Return if available
`import_delim()` `import_xls()` `import_ods()` `import_dta()` `import_rds()`
  Wrapper to ease data file import
`import_file_ui()` `import_file_server()`
  Import data from a file
`import_file_demo_app()`
  Test app for the import_file module
`import_globalenv_ui()` `import_globalenv_server()`
  Import data from an Environment
`index_embed()`
  Split vector by an index and embed addition
`is_any_class()`
  Test class
`is_consecutive()`
  Checks if elements in vector are equally spaced as indication of ID
`is_datetime()`
  Test is date/datetime/time
`is_identical_to_previous()`
  Test if element is identical to the previous
`is_splittable()`
  Determine if any variable in data frame character and contains recognized delimiters
`is_valid_redcap_url()`
  Test if url is valid format for REDCap API
`is_valid_token()`
  Validate REDCap token
`label_report()`
  Print a tidy summary of column labels
`landing_page_ui()`
  Tag list of elements for the FreesearchR landing page
`launch_FreesearchR()`
  Easily launch the FreesearchR app
`limit_data_size()`
  Limit the allowed data set size by number of cells
`limit_log()`
  Easily round log scale limits for nice plots
`line_break()`
  Line breaking at given number of characters for nicely plotting labels
`list_pkg_data()`
  List dataset contained in a package
`make_validation()`
  Create validation data.frame
`make_validation_alerts()`
  Create alert from validation data.frame
`mcar_validate()`
  MCAR validation based on a gtsummary table bady
`merge_expression()`
  Merge list of expressions
`merge_long()`
  Wrapper to pivot gtsummary table data to long for plotting
`missing_fraction()`
  Get missingsness fraction
`missings_logic_across()`
  Converting all variables to logicals by missing status
`missings_validate()`
  Validate function of missingness in data
`modify_qmd()`
  Wrapper to modify quarto file to render specific formats
`names2val()`
  Set values as names and names as values
`obs_filter_validate()`
  Observations filter test wrapper
`overview_vars()`
  Create a data overview data.frame ready for sparklines
`pipe_string()`
  Reduce character vector with the native pipe operator or character string
`plot(<tbl_regression>)`
  Regression coef plot from gtsummary. Slightly modified to pass on arguments
`plot_euler()`
  Easily plot euler diagrams
`plot_euler_single()`
  Easily plot single euler diagrams
`plot_sankey_single()`
  Beautiful sankey plot
`possible_functions()`
  Get possible regression models
`possible_plots()`
  Get possible regression models
`read_input()`
  Flexible file import based on extension
`m_redcap_readUI()` `m_redcap_readServer()` `redcap_demo_app()`
  Shiny module to browser and export REDCap data
`regression_model()` `regression_model_uv()` `regression_model_list()` `regression_model_uv_list()`
  Create a regression model programatically
`regression_table()`
  Create table of regression model
`regression_table_create()`
  Create regression summary table
`remove_empty_attr()`
  Remove empty/NA attributes
`remove_empty_cols()`
  Removes columns with completenes below cutoff
`remove_nested_list()`
  Very simple function to remove nested lists, like when uploading .rds
`repeated_instruments()`
  Get names of repeated instruments
`restore_labels()`
  Restore column labels using a reference data frame
`selectInputIcon()`
  Create a select input control with icon(s)
`separate_string()`
  Separate string wide or long
`set_column_label()`
  (Re)label columns in data.frame
`show_data()`
  Display a table in a window
`simple_snake()`
  Simplified version of the snakecase packages to_snake_case
`sort_by()`
  Drop-in replacement for the base::sort_by with option to remove NAs
`specify_qmd_format()`
  Specify format arguments to include in qmd header/frontmatter
`string_split_ui()` `string_split_server()` `modal_string_split()`
  String split module based on tidyr::separate_
`subset_types()`
  Easily subset by data type function
`supported_functions()`
  Implemented functions
`supported_plots()`
  Implemented functions
`symmetrical_scale_x_log10()`
  Ensure symmetrical plot around 1 on a logarithmic x scale for ratio plots
`tbl_merge()`
  A substitue to gtsummary::tbl_merge, that will use list names for the tab spanner names.
`type_icons()`
  Get data type icons
`ui_elements()`
  FreesearchR UI elements list
`unique_names()`
  Make unique variable names
`unique_short()`
  Create unique short names of character vector items based on index
`update_factor_ui()` `update_factor_server()` `modal_update_factor()` `winbox_update_factor()`
  Module to Reorder the Levels of a Factor Variable
`update_variables_ui()` `update_variables_server()`
  Select, rename and convert variables
`update_variables_datagrid()`
  Modified from the datamods pacakge
`validation_ui()` `validation_server()`
  Validation module
`validation_lib()`
  Validation library
`vars_filter_validate()`
  Variable filter test wrapper
`vectorSelectInput()`
  A selectizeInput customized for named vectors
`vertical_stacked_bars()`
  Vertical stacked bar plot wrapper
`visual_summary_ui()` `visual_summary_server()` `modal_visual_summary()` `missings_apex_plot()` `visual_summary()`
  Data correlations evaluation module
`wide2long()`
  Alternative pivoting method for easily pivoting based on name pattern
`with_labels()`
  Evaluate an expression while preserving column labels
`wrap_plot_list()`
  Wrapping
`write_quarto()`
  Wrapper to save data in RDS, load into specified qmd and render