usefun0.5.2 package

A Collection of Useful Functions by John

add_row_to_ternary_df

Add a row to a 3-valued (ternary) data.frame

add_vector_to_df

Add vector to a (n x 2) data frame

binarize_to_thres

Binarize matrix to given threshold

colors.100

100 distinct colors

dec_to_bin

Convert decimal number to its binary representation

get_common_names

Get the common names of two vectors

get_common_values

Get the common values of two vectors

get_parent_dir

Retrieve the parent directory

get_percentage_of_matches

Get percentage of matches between two vectors

get_roc_stats

Generate ROC statistics

get_stats_for_unique_values

Get stats for unique values

get_ternary_class_id

Get ternary class id

is_between

Is value between two others?

is_empty

Is object empty?

ldf_arrange_by_rownames

Rearrange a list of data frames by rownames

make_color_bar_plot

Make a color bar plot

make_multiple_density_plot

Multiple densities plot

mat_equal

Matrix equality

normalize_to_range

Range normalization

outersect

Outersect

partial_permut

Get partial permutation of a vector

powerset_icounts

Powerset Intersection Table

pr.boot

Bootstrap Confidence Intervals for Precision-Recall Curves

pr.test

Compare two Precision-Recall curves

pretty_print_bold_string

Pretty print a bold string

pretty_print_name_and_value

Pretty print a name and value

pretty_print_string

Pretty print a string

pretty_print_vector_names_and_values

Pretty printing of a vector's names and values

pretty_print_vector_names

Pretty printing of a vector's names attribute

pretty_print_vector_values

Pretty printing of a vector's values

print_empty_line

Print an empty line

prune_and_reorder_vector

Prune and reorder vector elements

prune_columns_from_df

Prune single-value columns from a data frame

prune_rows_from_df

Prune single-value rows from a data frame

remove_commented_and_empty_lines

Remove commented and empty lines

save_df_to_file

Save data frame to a specified file

save_mat_to_file

Save matrix to a specified file

save_vector_to_file

Save vector to a specified file

specify_decimal

Specify decimal

usefun

usefun

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.

  • Maintainer: John Zobolas
  • License: MIT + file LICENSE
  • Last published: 2024-09-14