Package: usefun 0.5.2

usefun: A Collection of Useful Functions by John

A set of general functions that I have used in various projects and other R packages. Miscellaneous operations on data frames, matrices and vectors, ROC and PR statistics.

Authors:John Zobolas [aut, cph, cre]

usefun_0.5.2.tar.gz
usefun_0.5.2.zip(r-4.5)usefun_0.5.2.zip(r-4.4)usefun_0.5.2.zip(r-4.3)
usefun_0.5.2.tgz(r-4.4-any)usefun_0.5.2.tgz(r-4.3-any)
usefun_0.5.2.tar.gz(r-4.5-noble)usefun_0.5.2.tar.gz(r-4.4-noble)
usefun_0.5.2.tgz(r-4.4-emscripten)usefun_0.5.2.tgz(r-4.3-emscripten)
usefun.pdf |usefun.html
usefun/json (API)
NEWS

# Install 'usefun' in R:
install.packages('usefun', repos = c('https://bblodfon.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/bblodfon/usefun/issues

On CRAN:

functions

39 exports 2 stars 1.12 score 39 dependencies 82 scripts 432 downloads

Last updated 3 days agofrom:c473cb10c9. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-winNOTESep 15 2024
R-4.5-linuxNOTESep 15 2024
R-4.4-winNOTESep 15 2024
R-4.4-macNOTESep 15 2024
R-4.3-winNOTESep 15 2024
R-4.3-macNOTESep 15 2024

Exports:add_row_to_ternary_dfadd_vector_to_dfbinarize_to_threscolors.100dec_to_binget_common_namesget_common_valuesget_parent_dirget_percentage_of_matchesget_roc_statsget_stats_for_unique_valuesget_ternary_class_idis_betweenis_emptyldf_arrange_by_rownamesmake_color_bar_plotmake_multiple_density_plotmat_equalnormalize_to_rangeoutersectpartial_permutpowerset_icountspr.bootpr.testpretty_print_bold_stringpretty_print_name_and_valuepretty_print_stringpretty_print_vector_namespretty_print_vector_names_and_valuespretty_print_vector_valuesprint_empty_lineprune_and_reorder_vectorprune_columns_from_dfprune_rows_from_dfremove_commented_and_empty_linessave_df_to_filesave_mat_to_filesave_vector_to_filespecify_decimal

Dependencies:assertthatbackportscheckmateclicolorspacedata.tabledplyrfansifarvergenericsggplot2gluegridExtragtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigprecrecPRROCR6RColorBrewerRcpprlangscalestibbletidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Add a row to a 3-valued (ternary) 'data.frame'add_row_to_ternary_df
Add vector to a (n x 2) data frameadd_vector_to_df
Binarize matrix to given thresholdbinarize_to_thres
100 distinct colorscolors.100
Convert decimal number to its binary representationdec_to_bin
Get the common names of two vectorsget_common_names
Get the common values of two vectorsget_common_values
Retrieve the parent directoryget_parent_dir
Get percentage of matches between two vectorsget_percentage_of_matches
Generate ROC statisticsget_roc_stats
Get stats for unique valuesget_stats_for_unique_values
Get ternary class idget_ternary_class_id
Is value between two others?is_between
Is object empty?is_empty
Rearrange a list of data frames by rownamesldf_arrange_by_rownames
Make a color bar plotmake_color_bar_plot
Multiple densities plotmake_multiple_density_plot
Matrix equalitymat_equal
Range normalizationnormalize_to_range
Outersectoutersect
Get partial permutation of a vectorpartial_permut
Powerset Intersection Tablepowerset_icounts
Bootstrap Confidence Intervals for Precision-Recall Curvespr.boot
Compare two Precision-Recall curvespr.test
Pretty print a bold stringpretty_print_bold_string
Pretty print a name and valuepretty_print_name_and_value
Pretty print a stringpretty_print_string
Pretty printing of a vector's names attributepretty_print_vector_names
Pretty printing of a vector's names and valuespretty_print_vector_names_and_values
Pretty printing of a vector's valuespretty_print_vector_values
Print an empty lineprint_empty_line
Prune and reorder vector elementsprune_and_reorder_vector
Prune single-value columns from a data frameprune_columns_from_df
Prune single-value rows from a data frameprune_rows_from_df
Remove commented and empty linesremove_commented_and_empty_lines
Save data frame to a specified filesave_df_to_file
Save matrix to a specified filesave_mat_to_file
Save vector to a specified filesave_vector_to_file
Specify decimalspecify_decimal
usefunusefun-package usefun