{"id":32199187,"url":"https://github.com/traitecoevo/litterfitter","last_synced_at":"2026-02-18T22:36:29.740Z","repository":{"id":11939136,"uuid":"14508718","full_name":"traitecoevo/litterfitter","owner":"traitecoevo","description":"Package for fitting and testing alternative models for single cohort litter decomposition data","archived":false,"fork":false,"pushed_at":"2026-01-29T00:20:18.000Z","size":18817,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-01-29T15:39:50.649Z","etag":null,"topics":["carbon","carboncycle","decomposition","ecology-modelling","soil"],"latest_commit_sha":null,"homepage":"http://traitecoevo.github.io/litterfitter/","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/traitecoevo.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2013-11-18T23:41:15.000Z","updated_at":"2026-01-29T00:18:35.000Z","dependencies_parsed_at":"2025-09-08T15:29:43.114Z","dependency_job_id":"af5a21ff-8ea8-4b72-89f0-dec1d2d837d5","html_url":"https://github.com/traitecoevo/litterfitter","commit_stats":{"total_commits":169,"total_committers":6,"mean_commits":"28.166666666666668","dds":0.6331360946745562,"last_synced_commit":"30711084902b2b02423180da5275a02751a1f5f2"},"previous_names":["traitecoevo/litterfitter"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/traitecoevo/litterfitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitecoevo%2Flitterfitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitecoevo%2Flitterfitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitecoevo%2Flitterfitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitecoevo%2Flitterfitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traitecoevo","download_url":"https://codeload.github.com/traitecoevo/litterfitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitecoevo%2Flitterfitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29597252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["carbon","carboncycle","decomposition","ecology-modelling","soil"],"created_at":"2025-10-22T03:08:38.240Z","updated_at":"2026-02-18T22:36:29.732Z","avatar_url":"https://github.com/traitecoevo.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n# litterfitter \u003cimg src=\"man/figures/litterfitter_hex.png\" align=\"right\" alt=\"\" width=\"120\" /\u003e\n\n\u003e R package for fitting and testing alternative models for single cohort\n\u003e litter decomposition data\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/traitecoevo/litterfitter/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/traitecoevo/litterfitter/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/traitecoevo/litterfitter/branch/master/graph/badge.svg)](https://app.codecov.io/gh/traitecoevo/litterfitter?branch=master)\n[![DOI](https://img.shields.io/badge/DOI-10.1111--2041--210X.12138-blue.svg)](https://onlinelibrary.wiley.com/doi/10.1111/2041-210X.12138)\n[![](https://www.r-pkg.org/badges/version/litterfitter?color=orange)](https://cran.r-project.org/package=litterfitter)\n\u003c!-- badges: end --\u003e\n\n### Installation\n\n``` r\n  #install.packages(\"remotes\")\n  remotes::install_github(\"cornwell-lab-unsw/litterfitter\")\n  \nlibrary(litterfitter)\n```\n\n### Getting started\n\nAt the moment there is one key function which is `fit_litter` which can\nfit 6 different types of decomposition trajectories. Note that the\nfitted object is a `litfit` object\n\n``` r\nfit \u003c- fit_litter(time=c(0,1,2,3,4,5,6),\n                  mass.remaining =c(1,0.9,1.01,0.4,0.6,0.2,0.01),\n                  model=\"weibull\",\n                  iters=500)\n\nclass(fit)\n```\n\nYou can visually compare the fits of different non-linear equations with\nthe `plot_multiple_fits` function:\n\n``` r\nplot_multiple_fits(time=c(0,1,2,3,4,5,6),\n                   mass.remaining=c(1,0.9,1.01,0.4,0.6,0.2,0.01),\n                   model=c(\"neg.exp\",\"weibull\"),\n                   iters=500)\n```\n\n\u003cimg src=\"man/figures/README-unnamed-chunk-4-1.png\" width=\"100%\" /\u003e\n\nCalling `plot` on a `litfit` object will show you the data, the curve\nfit, and even the equation, with the estimated coefficients:\n\n``` r\n   plot(fit)\n```\n\n\u003cimg src=\"man/figures/README-unnamed-chunk-5-1.png\" width=\"100%\" /\u003e\n\nThe summary of a `litfit` object will show you some of the summary\nstatistics for the fit.\n\n    #\u003e Summary of litFit object\n    #\u003e Model type: weibull \n    #\u003e Number of observations:  7 \n    #\u003e Parameter fits: 4.19 \n    #\u003e Parameter fits: 2.47 \n    #\u003e Time to 50% mass loss: 3.61 \n    #\u003e Implied steady state litter mass: 3.71 in units of yearly input \n    #\u003e AIC:  -3.8883 \n    #\u003e AICc:  -0.8883 \n    #\u003e BIC:  -3.9965\n\nFrom the `litfit` object you can then see the uncertainty in the\nparameter estimate by bootstrapping\n\n\u003cimg src=\"man/figures/README-unnamed-chunk-7-1.png\" width=\"100%\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraitecoevo%2Flitterfitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraitecoevo%2Flitterfitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraitecoevo%2Flitterfitter/lists"}