{
  "_id": "6a10202eacfb0bcc41c8b782",
  "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-05-14 06:22:47 UTC",
    "User": "root"
  },
  "Author": "John Zobolas [aut, cph, cre] (ORCID:\n<https://orcid.org/0000-0002-3609-8674>)",
  "Maintainer": "John Zobolas <bblodfon@gmail.com>",
  "MD5sum": "05558c9bf1aca422c3c3efe44bc719b6",
  "_user": "bblodfon",
  "_type": "src",
  "_file": "usefun_0.5.2.tar.gz",
  "_fileid": "2ff58d34dcb201dbf3a481a8078c84bce8d144b82372f690a8fda55e4b684852",
  "_filesize": 224939,
  "_sha256": "2ff58d34dcb201dbf3a481a8078c84bce8d144b82372f690a8fda55e4b684852",
  "_created": "2026-05-14T06:22:47.000Z",
  "_published": "2026-05-22T09:21:50.811Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77351759335,
      "time": 139,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6988512342"
    },
    {
      "job": 77351759507,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988511507"
    },
    {
      "job": 77351759914,
      "time": 117,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6988506020"
    },
    {
      "job": 77351759445,
      "time": 91,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988500704"
    },
    {
      "job": 77351759182,
      "time": 185,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988480621"
    },
    {
      "job": 77351758914,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157142416"
    },
    {
      "job": 77351759460,
      "time": 96,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6988501802"
    },
    {
      "job": 77351759485,
      "time": 104,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6988503208"
    },
    {
      "job": 77351759372,
      "time": 91,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988500466"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 10909555
  },
  "_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",
    "description": "Computational Biology and Clinical AI Researcher, juggler, pianist"
  },
  "_downloads": {
    "count": 265,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/usefun"
  },
  "_devurl": "https://github.com/bblodfon/usefun",
  "_searchresults": 99,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/usefun.html",
    "manual.pdf"
  ],
  "_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": [
    "assertthat",
    "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.296665190261531,
  "_indexed": true,
  "_nocasepkg": "usefun",
  "_universes": [
    "bblodfon"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-05-14T06:24:58.000Z",
      "distro": "noble",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "6fa45982c1b19341b3e635b6f0cfa23c92e7220175bb5b628b71c7b232d52a6f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-05-14T06:24:53.000Z",
      "distro": "noble",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "4bf0df9f80b8c306b3e1186578a61dd3fbb51037635f9bed5caa7f742e04d2e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-05-14T06:24:28.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "6c027302334fb6de6293d4b78ed4879fab679afb0b76e0f4e4c91941ec993973",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-05-14T06:24:16.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "1a69d1619a698bd38dd5ef41224501d87a143aebcff977878a89ec2dd4fba83c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-14T06:24:03.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "ae6f38e7206cd4e300dcabd3b5807a6cbb572f9233afe378a52e2f7d7c1ca5a0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-14T06:24:09.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "71de844f59229b65037d8c8acfbfcffc64e99ef44e2745da6b70d4b98fa2ba77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-14T06:23:57.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "d4ee3352d9aa4b5a0a3ae0936b8bbdead885873ec6b2785bdca2786eb3d2c0cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.2",
      "date": "2026-05-22T09:21:32.000Z",
      "commit": "c473cb10c922677e9574d1c80e2e785774b9cbba",
      "fileid": "39dc1429ef2084488075f3ccac683e3f200d093ea8004db9d7750f663d2c6735",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bblodfon/actions/runs/25845260159"
    }
  ]
}