{"id":15384716,"url":"https://github.com/bblodfon/usefun","last_synced_at":"2025-07-26T02:40:35.165Z","repository":{"id":56935372,"uuid":"191339068","full_name":"bblodfon/usefun","owner":"bblodfon","description":"Various useful R functions","archived":false,"fork":false,"pushed_at":"2024-09-14T23:30:02.000Z","size":175,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T03:05:27.061Z","etag":null,"topics":["functions","r","r-package"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bblodfon.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-11T09:31:32.000Z","updated_at":"2024-11-29T12:57:47.000Z","dependencies_parsed_at":"2024-10-18T16:40:08.915Z","dependency_job_id":"efd51a44-739c-472a-b1d5-74b34eb759b6","html_url":"https://github.com/bblodfon/usefun","commit_stats":{"total_commits":116,"total_committers":1,"mean_commits":116.0,"dds":0.0,"last_synced_commit":"c473cb10c922677e9574d1c80e2e785774b9cbba"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/bblodfon/usefun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bblodfon%2Fusefun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bblodfon%2Fusefun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bblodfon%2Fusefun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bblodfon%2Fusefun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bblodfon","download_url":"https://codeload.github.com/bblodfon/usefun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bblodfon%2Fusefun/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267109003,"owners_count":24037615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functions","r","r-package"],"created_at":"2024-10-01T14:43:09.096Z","updated_at":"2025-07-26T02:40:35.114Z","avatar_url":"https://github.com/bblodfon.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# usefun\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/bblodfon/usefun/workflows/R-CMD-check/badge.svg)](https://github.com/bblodfon/usefun/actions)\n[![codecov](https://codecov.io/gh/bblodfon/usefun/branch/main/graph/badge.svg)](https://app.codecov.io/gh/bblodfon/usefun)\n[![CRAN status](https://www.r-pkg.org/badges/version/usefun)](https://cran.r-project.org/package=usefun)\n[![Downloads](https://cranlogs.r-pkg.org/badges/usefun)](https://cran.r-project.org/package=usefun)\n\u003c!-- badges: end --\u003e\n\nA set of miscellaneous functions that I have used in various projects and in other R packages. \nSome of the most important are:\n\n- `powerset_icounts()`: find common (patient) ids in incomplete multi-omic datasets\n- `get_roc_stats()`: the ROC statistics the way you want it!\n- `pr.test()`: compare two PR curves (AUCs) and get a p-value!\n- `pr.boot()`: bootstrap CIs for PR curve\n- `partial_permut()`: get a partially-scrambled vector (you choose how much!)\n- `normalize_to_range()`: normalize a vector to a specified range\n- `dec_to_bin()`: convert a decimal (base-10) number to its binary representation\n- `get_percentage_of_matches()`: find the percentage of common elements between two vectors\n- `outersect()`: find the non-common elements between two vectors (outer-section!)\n- `colors.100`: a vector of 100 as much as possible *distinct* colors\n\n## Install\n\nCRAN version:\n```\ninstall.packages(\"usefun\")\n```\n\nDevelopment version:\n```\ndevtools::install_github(\"bblodfon/usefun\")\n```\n\n## Examples\n\nSee examples in the functions documentation and in the respective tests.\nFor a full biomarker analysis that uses various functions from this package, see [this report](https://druglogics.github.io/gitsbe-model-analysis/atopo/cell-lines-2500/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbblodfon%2Fusefun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbblodfon%2Fusefun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbblodfon%2Fusefun/lists"}