{
  "_id": "6acb5af1fe5cc25786e8e9d7",
  "Type": "Package",
  "Package": "usefun",
  "Title": "A Collection of Useful Functions by John",
  "Version": "0.5.2",
  "Authors@R": "person(\"John\", \"Zobolas\", , \"bblodfon@gmail.com\", role = c(\"aut\", \"cph\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3609-8674\"))",
  "Description": "A set of general functions that I have used in various\nprojects and other R packages. Miscellaneous operations on data\nframes, matrices and vectors, ROC and PR statistics.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/bblodfon/usefun",
  "BugReports": "https://github.com/bblodfon/usefun/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Repository": "https://bblodfon.r-universe.dev",
  "Date/Publication": "2024-09-14 23:29:51 UTC",
  "RemoteUrl": "https://github.com/bblodfon/usefun",
  "RemoteRef": "HEAD",
  "RemoteSha": "c473cb10c922677e9574d1c80e2e785774b9cbba",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-11 09:26:32 UTC",
    "User": "root"
  },
  "Author": "John Zobolas [aut, cph, cre] (ORCID:\n<https://orcid.org/0000-0002-3609-8674>)",
  "Maintainer": "John Zobolas <bblodfon@gmail.com>",
  "_user": "bblodfon",
  "_type": "src",
  "_file": "usefun_0.5.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/0dacb2b288c2b485a0cf5474bd980d4fe7536bf3bec503b9ffa6183fa95c2c77",
  "_filesize": 221187,
  "_sha256": "0dacb2b288c2b485a0cf5474bd980d4fe7536bf3bec503b9ffa6183fa95c2c77",
  "_expires": "2027-01-19T09:46:24.000Z",
  "_created": "2026-10-11T09:26:32.000Z",
  "_published": "2026-10-11T09:46:25.768Z",
  "_buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114437455501,
      "time": 125,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11698200422"
    },
    {
      "job": 114437455492,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11697834849"
    },
    {
      "job": 114437455542,
      "time": 191,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11698616340"
    },
    {
      "job": 114437455527,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11697992002"
    },
    {
      "job": 114436982699,
      "time": 156,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11698695343"
    },
    {
      "job": 114437455499,
      "time": 94,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11698555663"
    },
    {
      "job": 114437455560,
      "time": 93,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11698181088"
    },
    {
      "job": 114437455518,
      "time": 99,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11698665017"
    },
    {
      "job": 114437455545,
      "time": 88,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11698195452"
    }
  ],
  "_upstream": "https://github.com/bblodfon/usefun",
  "_commit": {
    "id": "c473cb10c922677e9574d1c80e2e785774b9cbba",
    "author": "john <bblodfon@gmail.com>",
    "committer": "john <bblodfon@gmail.com>",
    "message": "refactor doc due to problems making the PDF manual\n",
    "time": 1726356591
  },
  "_maintainer": {
    "name": "John Zobolas",
    "email": "bblodfon@gmail.com",
    "login": "bblodfon",
    "orcid": "0000-0002-3609-8674",
    "description": "Computational Biology and Clinical AI Researcher, juggler, pianist",
    "uuid": 10909555
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.2",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "precrec",
      "version": ">= 0.14.2",
      "role": "Imports"
    },
    {
      "package": "PRROC",
      "version": ">= 1.3.1",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.2.1",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "combinat",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "mlr3misc",
      "role": "Suggests"
    },
    {
      "package": "readr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "bblodfon",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "functions"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "bblodfon",
      "count": 116,
      "uuid": 10909555
    }
  ],
  "_userbio": {
    "uuid": 10909555,
    "type": "user",
    "name": "John Zobolas",
    "followers": 42,
    "description": "Computational Biology and Clinical AI Researcher, juggler, pianist"
  },
  "_downloads": {
    "count": 307,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/usefun"
  },
  "_devurl": "https://github.com/bblodfon/usefun",
  "_searchresults": 105,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/usefun.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/bblodfon/usefun",
  "_realowner": "bblodfon",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.1",
      "date": "2019-10-11"
    },
    {
      "version": "0.4.3",
      "date": "2020-01-30"
    },
    {
      "version": "0.4.4",
      "date": "2020-04-17"
    },
    {
      "version": "0.4.5",
      "date": "2020-04-22"
    },
    {
      "version": "0.4.6",
      "date": "2020-05-29"
    },
    {
      "version": "0.4.7",
      "date": "2020-06-10"
    },
    {
      "version": "0.4.8",
      "date": "2020-12-16"
    },
    {
      "version": "0.4.9",
      "date": "2023-08-30"
    },
    {
      "version": "0.5.0",
      "date": "2023-09-17"
    },
    {
      "version": "0.5.2",
      "date": "2024-09-15"
    }
  ],
  "_exports": [
    "add_row_to_ternary_df",
    "add_vector_to_df",
    "binarize_to_thres",
    "colors.100",
    "dec_to_bin",
    "get_common_names",
    "get_common_values",
    "get_parent_dir",
    "get_percentage_of_matches",
    "get_roc_stats",
    "get_stats_for_unique_values",
    "get_ternary_class_id",
    "is_between",
    "is_empty",
    "ldf_arrange_by_rownames",
    "make_color_bar_plot",
    "make_multiple_density_plot",
    "mat_equal",
    "normalize_to_range",
    "outersect",
    "partial_permut",
    "powerset_icounts",
    "pr.boot",
    "pr.test",
    "pretty_print_bold_string",
    "pretty_print_name_and_value",
    "pretty_print_string",
    "pretty_print_vector_names",
    "pretty_print_vector_names_and_values",
    "pretty_print_vector_values",
    "print_empty_line",
    "prune_and_reorder_vector",
    "prune_columns_from_df",
    "prune_rows_from_df",
    "remove_commented_and_empty_lines",
    "save_df_to_file",
    "save_mat_to_file",
    "save_vector_to_file",
    "specify_decimal"
  ],
  "_help": [
    {
      "page": "add_row_to_ternary_df",
      "title": "Add a row to a 3-valued (ternary) 'data.frame'",
      "topics": [
        "add_row_to_ternary_df"
      ]
    },
    {
      "page": "add_vector_to_df",
      "title": "Add vector to a (n x 2) data frame",
      "topics": [
        "add_vector_to_df"
      ]
    },
    {
      "page": "binarize_to_thres",
      "title": "Binarize matrix to given threshold",
      "topics": [
        "binarize_to_thres"
      ]
    },
    {
      "page": "colors.100",
      "title": "100 distinct colors",
      "topics": [
        "colors.100"
      ]
    },
    {
      "page": "dec_to_bin",
      "title": "Convert decimal number to its binary representation",
      "topics": [
        "dec_to_bin"
      ]
    },
    {
      "page": "get_common_names",
      "title": "Get the common names of two vectors",
      "topics": [
        "get_common_names"
      ]
    },
    {
      "page": "get_common_values",
      "title": "Get the common values of two vectors",
      "topics": [
        "get_common_values"
      ]
    },
    {
      "page": "get_parent_dir",
      "title": "Retrieve the parent directory",
      "topics": [
        "get_parent_dir"
      ]
    },
    {
      "page": "get_percentage_of_matches",
      "title": "Get percentage of matches between two vectors",
      "topics": [
        "get_percentage_of_matches"
      ]
    },
    {
      "page": "get_roc_stats",
      "title": "Generate ROC statistics",
      "topics": [
        "get_roc_stats"
      ]
    },
    {
      "page": "get_stats_for_unique_values",
      "title": "Get stats for unique values",
      "topics": [
        "get_stats_for_unique_values"
      ]
    },
    {
      "page": "get_ternary_class_id",
      "title": "Get ternary class id",
      "topics": [
        "get_ternary_class_id"
      ]
    },
    {
      "page": "is_between",
      "title": "Is value between two others?",
      "topics": [
        "is_between"
      ]
    },
    {
      "page": "is_empty",
      "title": "Is object empty?",
      "topics": [
        "is_empty"
      ]
    },
    {
      "page": "ldf_arrange_by_rownames",
      "title": "Rearrange a list of data frames by rownames",
      "topics": [
        "ldf_arrange_by_rownames"
      ]
    },
    {
      "page": "make_color_bar_plot",
      "title": "Make a color bar plot",
      "topics": [
        "make_color_bar_plot"
      ]
    },
    {
      "page": "make_multiple_density_plot",
      "title": "Multiple densities plot",
      "topics": [
        "make_multiple_density_plot"
      ]
    },
    {
      "page": "mat_equal",
      "title": "Matrix equality",
      "topics": [
        "mat_equal"
      ]
    },
    {
      "page": "normalize_to_range",
      "title": "Range normalization",
      "topics": [
        "normalize_to_range"
      ]
    },
    {
      "page": "outersect",
      "title": "Outersect",
      "topics": [
        "outersect"
      ]
    },
    {
      "page": "partial_permut",
      "title": "Get partial permutation of a vector",
      "topics": [
        "partial_permut"
      ]
    },
    {
      "page": "powerset_icounts",
      "title": "Powerset Intersection Table",
      "topics": [
        "powerset_icounts"
      ]
    },
    {
      "page": "pr.boot",
      "title": "Bootstrap Confidence Intervals for Precision-Recall Curves",
      "topics": [
        "pr.boot"
      ]
    },
    {
      "page": "pr.test",
      "title": "Compare two Precision-Recall curves",
      "topics": [
        "pr.test"
      ]
    },
    {
      "page": "pretty_print_bold_string",
      "title": "Pretty print a bold string",
      "topics": [
        "pretty_print_bold_string"
      ]
    },
    {
      "page": "pretty_print_name_and_value",
      "title": "Pretty print a name and value",
      "topics": [
        "pretty_print_name_and_value"
      ]
    },
    {
      "page": "pretty_print_string",
      "title": "Pretty print a string",
      "topics": [
        "pretty_print_string"
      ]
    },
    {
      "page": "pretty_print_vector_names",
      "title": "Pretty printing of a vector's names attribute",
      "topics": [
        "pretty_print_vector_names"
      ]
    },
    {
      "page": "pretty_print_vector_names_and_values",
      "title": "Pretty printing of a vector's names and values",
      "topics": [
        "pretty_print_vector_names_and_values"
      ]
    },
    {
      "page": "pretty_print_vector_values",
      "title": "Pretty printing of a vector's values",
      "topics": [
        "pretty_print_vector_values"
      ]
    },
    {
      "page": "print_empty_line",
      "title": "Print an empty line",
      "topics": [
        "print_empty_line"
      ]
    },
    {
      "page": "prune_and_reorder_vector",
      "title": "Prune and reorder vector elements",
      "topics": [
        "prune_and_reorder_vector"
      ]
    },
    {
      "page": "prune_columns_from_df",
      "title": "Prune single-value columns from a data frame",
      "topics": [
        "prune_columns_from_df"
      ]
    },
    {
      "page": "prune_rows_from_df",
      "title": "Prune single-value rows from a data frame",
      "topics": [
        "prune_rows_from_df"
      ]
    },
    {
      "page": "remove_commented_and_empty_lines",
      "title": "Remove commented and empty lines",
      "topics": [
        "remove_commented_and_empty_lines"
      ]
    },
    {
      "page": "save_df_to_file",
      "title": "Save data frame to a specified file",
      "topics": [
        "save_df_to_file"
      ]
    },
    {
      "page": "save_mat_to_file",
      "title": "Save matrix to a specified file",
      "topics": [
        "save_mat_to_file"
      ]
    },
    {
      "page": "save_vector_to_file",
      "title": "Save vector to a specified file",
      "topics": [
        "save_vector_to_file"
      ]
    },
    {
      "page": "specify_decimal",
      "title": "Specify decimal",
      "topics": [
        "specify_decimal"
      ]
    },
    {
      "page": "usefun",
      "title": "usefun",
      "topics": [
        "usefun-package",
        "usefun"
      ]
    }
  ],
  "_readme": "https://github.com/bblodfon/usefun/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "cli",
    "cpp11",
    "data.table",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "precrec",
    "PRROC",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 4.3222192947339195,
  "_indexed": true,
  "_nocasepkg": "usefun",
  "_universes": [
    "bblodfon"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-10-11T09:28:24.000Z",
      "distro": "resolute",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/9aa6a82e9a2092cd348688ff9802cbbb0bff17c5b24a88999795ecc92734f176",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-10-11T09:28:30.000Z",
      "distro": "resolute",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/d7d5886d5e7aea59672bfb684d8d66103957f5e18eb6bee9a0f79e9e305694e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-10-11T09:44:55.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/4bd40f1de80eafbe4228fa90270a50a92e9bbe21f854ec259bd2980bf7dfb3ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-10-11T09:43:24.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/1dc38927e111b55b6b87fdf2cd7065a9f6a2e2088b6dbdd44cf8e828055967e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.2",
      "date": "2026-10-11T09:28:21.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/e5bcf8cf430121933c567adf23f890cbb0e7b1db0ba749b23899b452fcaa75d2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-10-11T09:27:41.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/32951607b099fd6e56ad12dbb29ca5b9208d2e7ddd2b542534a478d5025a3278",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-10-11T09:27:50.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/30d29796573a9ed8335b6ba192c062dfb349ba3573204974ef724108dc0efd7d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-10-11T09:27:39.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "https://r2.ropensci.org/2f1e466e573413c913adf4692dc78b5aa1320f639a9de174dfc15dfb5415c606",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/38128221528"
    }
  ]
}