{"id":32204566,"url":"https://github.com/ffverse/ffsimulator","last_synced_at":"2025-10-22T04:59:00.884Z","repository":{"id":40348935,"uuid":"374247534","full_name":"ffverse/ffsimulator","owner":"ffverse","description":"Simulate Fantasy Football Seasons","archived":false,"fork":false,"pushed_at":"2024-10-03T14:22:03.000Z","size":56843,"stargazers_count":21,"open_issues_count":13,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-22T04:58:58.906Z","etag":null,"topics":["fantasy-football","r-package","simulation"],"latest_commit_sha":null,"homepage":"https://ffsimulator.ffverse.com","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/ffverse.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"tanho63","patreon":"tanho","ko_fi":"tanho"}},"created_at":"2021-06-06T01:59:17.000Z","updated_at":"2025-09-24T16:40:53.000Z","dependencies_parsed_at":"2023-12-21T01:56:31.193Z","dependency_job_id":"e6bc95ad-f998-4cab-9ddd-b0a539281c07","html_url":"https://github.com/ffverse/ffsimulator","commit_stats":{"total_commits":177,"total_committers":4,"mean_commits":44.25,"dds":0.2033898305084746,"last_synced_commit":"11c530e5f3b4fa5625ca1ea6dde24f5ebda75ddc"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ffverse/ffsimulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffverse%2Fffsimulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffverse%2Fffsimulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffverse%2Fffsimulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffverse%2Fffsimulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffverse","download_url":"https://codeload.github.com/ffverse/ffsimulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffverse%2Fffsimulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280382997,"owners_count":26321423,"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-10-22T02:00:06.515Z","response_time":63,"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":["fantasy-football","r-package","simulation"],"created_at":"2025-10-22T04:58:57.790Z","updated_at":"2025-10-22T04:59:00.875Z","avatar_url":"https://github.com/ffverse.png","language":"R","funding_links":["https://github.com/sponsors/tanho63","https://patreon.com/tanho","https://ko-fi.com/tanho","https://github.com/sponsors/tanho63)!"],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  fig.width = 8,\n  fig.height = 4,\n  eval = FALSE\n)\n```\n\n# ffsimulator \u003ca href='#'\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" width=\"25%\" min-width=\"120px\"/\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![CRAN status](https://img.shields.io/cran/v/ffsimulator?style=flat-square\u0026logo=R\u0026label=CRAN)](https://CRAN.R-project.org/package=ffsimulator)\n[![Dev version](https://img.shields.io/github/r-package/v/ffverse/ffsimulator/main?label=dev\u0026style=flat-square\u0026logo=github)](https://ffsimulator.ffverse.com/) \n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg?style=flat-square)](https://lifecycle.r-lib.org/articles/stages.html) \n[![R build status](https://img.shields.io/github/actions/workflow/status/ffverse/ffsimulator/R-CMD-check.yaml?label=R%20check\u0026style=flat-square\u0026logo=github)](https://github.com/ffverse/ffsimulator/actions)\n[![Codecov test coverage](https://img.shields.io/codecov/c/github/ffverse/ffsimulator?label=codecov\u0026style=flat-square\u0026logo=codecov)](https://app.codecov.io/gh/ffverse/ffsimulator) \n[![nflverse discord](https://img.shields.io/discord/789805604076126219?color=7289da\u0026label=nflverse%20discord\u0026logo=discord\u0026logoColor=fff\u0026style=flat-square)](https://discord.com/invite/5Er2FBnnQa)\n\n\u003c!-- badges: end --\u003e\n\nThe `{ffsimulator}` package uses bootstrap resampling to run fantasy football season simulations supported by historical rankings and nflfastR data, calculating optimal lineups, and returning aggregated results. This can quickly run your league through hundreds of seasons and builds out the data to help you study:\n\n-   expected season finishes and range of outcomes\n-   player contributions to season wins\n-   roster constructions\n-   effects of (potential) trades\n-   and more!\n\nThis package is part of the [ffverse](https://www.ffverse.com) family of R packages for fantasy football analysis.\n\n## Installation\n\nInstall the stable version of this package from CRAN:\n\n```{r}\ninstall.packages(\"ffsimulator\") # CRAN\n```\n\nInstall the development version from either [r-universe](https://ffverse.r-universe.dev) or GitHub:\n\n```{r}\ninstall.packages(\"ffsimulator\", repos = \"https://ffverse.r-universe.dev\")\n# pak is recommended, see https://github.com/r-lib/pak\npak::pak(\"ffverse/ffsimulator\")\n# can also use remotes\nremotes::install_github(\"ffverse/ffsimulator\")\n```\n\nThe development version has a [separate documentation site here](https://ffsimulator.ffverse.com/dev/).\n\n## Usage\n\nA season simulation can be run as follows:\n\n```{r eval = FALSE}\nlibrary(ffsimulator)\nlibrary(ggplot2)\nlibrary(ggridges)\n\nmfl_conn \u003c- mfl_connect(season = 2021, league_id = 22627)\n\n## OTHER PLATFORM CONNECTIONS MAY BE USED, FOR EXAMPLE:\n# sleeper_conn \u003c- sleeper_connect(season = 2021,  league_id = \"652582284720971776\") \n# flea_conn \u003c- fleaflicker_connect(season = 2021, league_id = 312861) \n# espn_conn \u003c- espn_connect(season = 2021, league_id = 899513)\n\nmfl_sim \u003c- ff_simulate(conn = mfl_conn, n_seasons = 100)\n\nplot(mfl_sim)\n```\n\u003cimg src=\"man/figures/ffsimulator_plot.png\" width=\"100%\" /\u003e\n\nPlease also see the \n\n-   [basic usage](https://ffsimulator.ffverse.com/articles/basic.html) and\n-   [custom simulations](https://ffsimulator.ffverse.com/articles/custom.html) \n\nvignettes for more detailed introductions.\n\n## Getting help\n\nThe best places to get help on this package are:\n\n-   the [nflverse discord](https://discord.com/invite/5Er2FBnnQa) (for both this package as well as anything R/NFL related)\n-   opening [an issue](https://github.com/ffverse/ffsimulator/issues/new/choose)\n\n## Contributing\n\nMany hands make light work! Here are some ways you can contribute to this project:\n\n-   You can [open an issue](https://github.com/ffverse/ffsimulator/issues/new/choose) if you'd like to request specific data or report a bug/error.\n-   You can [sponsor this project with donations](https://github.com/sponsors/tanho63)!\n-   If you'd like to contribute code, please check out [the contribution guidelines](https://ffsimulator.ffverse.com/CONTRIBUTING.html).\n\n## Terms of Use\n\nThe R code for this package is released as open source under the [MIT License](https://ffsimulator.ffverse.com/LICENSE.html).\nFantasy football and NFL data accessed by this package belong to their respective owners, and are governed by their terms of use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffverse%2Fffsimulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffverse%2Fffsimulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffverse%2Fffsimulator/lists"}