untb

Hubbell's unified neutral theory of biodiversity

https://github.com/robinhankin/untb

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.9%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Hubbell's unified neutral theory of biodiversity

Basic Info
Statistics
  • Stars: 4
  • Watchers: 2
  • Forks: 2
  • Open Issues: 3
  • Releases: 0
Created over 7 years ago · Last pushed over 1 year ago
Metadata Files
Readme Contributing Code of conduct

README.Rmd

---
title: "The unified neutral theory of biodiversity: the untb package"
output:
  github_document:
    pandoc_args: --webtex
---



```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```





[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/untb)](https://cran.r-project.org/package=untb)


The `untb` package provides R-centric functionality for working with
Hubbell's unified neutral theory of biogeography and biodiversity.  A
vignette is provided in the package.  The canonical reference is
Hubbell 2001; to cite the package in publications please use Hankin
2007.

# Installation

You can install the released version of the `untb` package from
[CRAN](https://CRAN.R-project.org) with:

```{r, label=installthepackage,message=FALSE}
# install.packages("untb")  # uncomment this to install the package
library("untb")
set.seed(0)
```

# The `untb` package in use

The package has two main classes, `count` and `census`.  A `count`
object is a named integer vector, with names being species and entries
being respective counts.  Thus:

```{r cliff1}
x <- count(c(cats=9,pigs=3,dogs=2,rats=1,hogs=1,bats=1))
x
summary(x)
```

Above, we see 9 cats, 3 pigs, and so on.  Function `summary()` gives
further information.  A `census` object is an unordered factor with
entries being the species of each individual:

```{r coercetocensus}
as.census(x)
```

The package includes example datasets:

```{r showsummarysahfos}
data(sahfos)
summary(sahfos)
```

We can give a visual summary of a dataset in two ways:

```{r prestonplotsahfos}
plot(sahfos)
plot(preston(sahfos))
```

The package also includes the ability to generate random neutral
assemblages:

```{r showrandomassemblage}
summary(rand.neutral(1000,10))
summary(rand.neutral(1000,10))
```

## References

* S. P. Hubbell 2001. "The Unified Neutral Theory of Biodiversity and
Biogeography", Princeton University Press.

* R. K. S. Hankin, 2007. "Introducing untb, an R package for
   simulating ecological drift under the unified nuetral theory of
   biodiversity", _Journal of Statistical Software_ 22(12)

Owner

  • Name: Robin Hankin
  • Login: RobinHankin
  • Kind: user
  • Location: Auckland
  • Company: AUT

pushing the boundaries of R in non-statistical contexts

GitHub Events

Total
  • Push event: 2
  • Fork event: 1
Last Year
  • Push event: 2
  • Fork event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 18
  • Total Committers: 1
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 4
  • Committers: 1
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Robin Hankin h****n@g****m 18

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 6
  • Total pull requests: 0
  • Average time to close issues: 2 months
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: about 2 hours
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • RobinHankin (6)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 487 last-month
  • Total docker downloads: 43,390
  • Total dependent packages: 2
  • Total dependent repositories: 3
  • Total versions: 22
  • Total maintainers: 1
cran.r-project.org: untb

Ecological Drift under the UNTB

  • Versions: 22
  • Dependent Packages: 2
  • Dependent Repositories: 3
  • Downloads: 487 Last month
  • Docker Downloads: 43,390
Rankings
Docker downloads count: 0.6%
Dependent packages count: 13.7%
Dependent repos count: 16.5%
Average: 17.5%
Forks count: 21.0%
Downloads: 22.6%
Stargazers count: 30.8%
Maintainers (1)
Last synced: 12 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • Brobdingnag >= 1.1 imports
  • partitions >= 1.9 imports
  • polynom * imports
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
  • r-lib/actions/setup-tinytex v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/recheck.yml actions