util_sort_by_order: Sort a vector by order given in some other vector

View source: R/util_sort_by_order.R

util_sort_by_orderR Documentation

Sort a vector by order given in some other vector

Description

Sort a vector by order given in some other vector

Usage

util_sort_by_order(x, order, ...)

Arguments

x

the vector

order

the "order vector

...

additional arguments passed to sort

See Also

Other summary_functions: prep_combine_report_summaries(), prep_extract_classes_by_functions(), prep_extract_summary(), prep_extract_summary.dataquieR_result(), prep_extract_summary.dataquieR_resultset2(), prep_render_pie_chart_from_summaryclasses_ggplot2(), prep_render_pie_chart_from_summaryclasses_plotly(), prep_summary_to_classes(), util_as_cat(), util_extract_indicator_metrics(), util_get_category_for_result(), util_get_colors(), util_get_html_cell_for_result(), util_get_labels_grading_class(), util_get_message_for_result(), util_get_rule_sets(), util_get_ruleset_formats(), util_get_thresholds(), util_html_table(), util_melt_summary()

Examples

## Not run: 
util_sort_by_order(c("a", "b", "a", "c", "d"), letters)

## End(Not run)


dataquieR documentation built on May 29, 2024, 7:18 a.m.