{"id":13724647,"url":"https://github.com/sollano/forestmangr","last_synced_at":"2026-02-21T01:31:33.280Z","repository":{"id":47738735,"uuid":"152138499","full_name":"sollano/forestmangr","owner":"sollano","description":"R package for forest mensuration and management ","archived":false,"fork":false,"pushed_at":"2026-02-08T21:33:20.000Z","size":1152,"stargazers_count":18,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T23:09:43.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sollano.png","metadata":{"files":{"readme":"README.Rmd","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}},"created_at":"2018-10-08T19:59:13.000Z","updated_at":"2026-02-08T21:33:25.000Z","dependencies_parsed_at":"2024-01-13T07:24:26.056Z","dependency_job_id":"274bee39-e4f6-47c9-a3f9-b71c446a12b1","html_url":"https://github.com/sollano/forestmangr","commit_stats":{"total_commits":206,"total_committers":1,"mean_commits":206.0,"dds":0.0,"last_synced_commit":"44f7673018ca97de2994084bb0f778a453936b8f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sollano/forestmangr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sollano%2Fforestmangr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sollano%2Fforestmangr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sollano%2Fforestmangr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sollano%2Fforestmangr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sollano","download_url":"https://codeload.github.com/sollano/forestmangr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sollano%2Fforestmangr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29554366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T18:16:07.221Z","status":"ssl_error","status_checked_at":"2026-02-17T18:16:04.782Z","response_time":100,"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":[],"created_at":"2024-08-03T01:02:01.106Z","updated_at":"2026-02-21T01:31:33.256Z","avatar_url":"https://github.com/sollano.png","language":"R","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=ZU4666LFSJSBY","https://www.paypal.com/cgi-bin/webscr","https://www.paypal.com/en_BR/i/scr/pixel.gif"],"categories":["Biosphere","Observation and Conservation of Ecosystems"],"sub_categories":["Forest Observation and Management","Vegitation and Biodiversity"],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE, message=FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\nlibrary(forestmangr)\nlibrary(dplyr)\n```\n\n[![Travis-CI Build Status](https://travis-ci.org/sollano/forestmangr.svg?branch=master)](https://travis-ci.org/sollano/forestmangr)\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/forestmangr)](https://cran.r-project.org/package=forestmangr)\n[![Coverage Status](https://codecov.io/gh/sollano/forestmangr/branch/master/graph/badge.svg)](https://codecov.io/gh/sollano/forestmangr?branch=master)\n[![](https://cranlogs.r-pkg.org/badges/grand-total/forestmangr)](https://cran.r-project.org/package=forestmangr)\n[![](https://cranlogs.r-pkg.org/badges/forestmangr)](https://cran.r-project.org/package=forestmangr)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n \u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=ZU4666LFSJSBY\" title=\"Help me out by donating to this project\"\u003e\u003cimg src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /\u003e\u003c/a\u003e \n \n# forestmangr\n\nProcessing forest inventory data with methods such as simple random sampling, stratified random sampling and systematic sampling. There are also functions for yield and growth predictions and model fitting, linear and non linear grouped data fitting, and statistical tests.\n\nIf you need any help, I’m available for consulting. If you find forestmangr useful, please consider supporting my efforts in developing this open-source R package for the forestry community!\n\n\n\u003cdiv style=\"text-align:center\"\u003e\n\u003cform action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"_top\"\u003e\n\u003cinput type=\"hidden\" name=\"cmd\" value=\"_s-xclick\" /\u003e\n\u003cinput type=\"hidden\" name=\"hosted_button_id\" value=\"ZU4666LFSJSBY\" /\u003e\n\u003cinput type=\"image\" src=\"https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif\" border=\"0\" name=\"submit\" title=\"PayPal - The safer, easier way to pay online!\" alt=\"Donate with PayPal button\" /\u003e\n\u003cimg alt=\"\" border=\"0\" src=\"https://www.paypal.com/en_BR/i/scr/pixel.gif\" width=\"1\" height=\"1\" /\u003e\n\u003c/form\u003e\n\u003c/div\u003e\n\n\n## Installation\nTo install the stable CRAN version, use:\n```{r eval = FALSE}\ninstall.packages(\"forestmangr\")\n```\n\n\nOr you can install forestmangr from github, for the latest dev version with:\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"sollano/forestmangr\")\n```\n\n## Example\n\n```{r}\nlibrary(forestmangr)\nlibrary(dplyr)\ndata(\"exfm16\")\nhead(exfm16)\n```\n\nNow, we can fit a model for Site estimatation. With `nls_table`, we can fit a non-linear model, extract it's coefficients, and merge it with\nthe original data in one line. Here we'll use Chapman \u0026 Richards model:\n\n```{r}\nage_i \u003c- 64\nexfm16_fit \u003c- exfm16 %\u003e%\n  nls_table(DH ~ b0 * (1-exp(-b1* age))^b2, mod_start = c( b0=23, b1=0.03, b2 = 1.3), output=\"merge\") %\u003e% \n  mutate(site = DH *( ( (1- exp( -b1/age ))^b2 ) / (( 1 - exp(-b1/age_i))^b2 ))) %\u003e% \n  select(-b0,-b1,-b2)\nhead(exfm16_fit)\n```\n\nNow, to fit Clutter's model, we can use the `fit_clutter` function, indicating the DH, B, V, site and Plot variable names:\n\n```{r}\ncoefs_clutter \u003c- fit_clutter(exfm16_fit, \"age\", \"DH\", \"B\", \"V\", \"site\", \"plot\")\ncoefs_clutter\n```\n\nNow, say we wanted to do a Simple Random Sampling Forest Inventory, with 20% as an accepted error. \nFirst, let's load the package and some data:\n\n```{r}\nlibrary(forestmangr)\ndata(\"exfm2\")\ndata(\"exfm3\")\ndata(\"exfm4\")\nhead(exfm3,10)\n```\nFirst we should try a pilot inventory, to see if the number of plots sampled is enough for reaching the desired error:\n\n```{r}\nsprs(exfm3, \"VWB\", \"PLOT_AREA\", \"TOTAL_AREA\", error = 20, pop = \"fin\")\n```\nWe can see that we have 10 plots, but 15 more are needed if we want a minimum of 20% error.\nThe exfm4 data has new samples, that we now can use to run a definitive inventory:\n\n```{r}\nsprs(exfm4, \"VWB\", \"PLOT_AREA\", \"TOTAL_AREA\", error = 20, pop = \"fin\")\n```\n\nThe desired error was met.\n\nThe exfm2 data has a strata variable. Say we wanted to run a SRS inventory for every stand. We can do this with the .groups argument:\n```{r}\nhead(exfm2,10)\nsprs(exfm2, \"VWB\", \"PLOT_AREA\", \"STRATA_AREA\",.groups=\"STRATA\", error = 20, pop = \"fin\")\n```\n\nWe can also run a stratified random sampling inventory with this data:\n```{r}\nstrs(exfm2, \"VWB\", \"PLOT_AREA\", \"STRATA_AREA\", \"STRATA\", error = 20, pop = \"fin\")\n```\n\n## Citation\nTo cite this package in publications, use:\n\nABNT:\n\nBRAGA S. R.; OLIVEIRA, M. L. R.; GORGENS, E. B. forestmangr: Forest Mensuration and Management. R package version 0.9.2, 2020. Disponível em: \u003chttps://CRAN.R-project.org/package=forestmangr\u003e\n\nAPA:\n\nSollano Rabelo Braga, Marcio Leles Romarco de Oliveira and Eric Bastos Gorgens (2020). forestmangr: Forest Mensuration and Management. R package version 0.9.2. https://CRAN.R-project.org/package=forestmangr\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n* This project was developed on the Forest Management Lab, DEF, UFVJM, Diamantina/Minas Gerais - Brazil.\n\n* This project came to be as a mean to make the life of a forestry engeneer a little easier and pratical. \nWe'd like to thank everyone at UFVJM that has in anyway helped this project grow.\n\n* We'd like to thank UFVJM, FAPEMIG, CNPq e CAPES for the support.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsollano%2Fforestmangr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsollano%2Fforestmangr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsollano%2Fforestmangr/lists"}