A Collection of Useful Functions by John


[Up] [Top]

Documentation for package ‘usefun’ version 0.5.0

Help Pages

usefun-package usefun
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
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 Pretty printing of a vector's names attribute
pretty_print_vector_names_and_values Pretty printing of a vector's names and values
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