Rdistance
An R package for simple, regression-like, distance-based analyses
Science Score: 36.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
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
2 of 16 committers (12.5%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.8%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
An R package for simple, regression-like, distance-based analyses
Statistics
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 13
- Releases: 9
Created about 13 years ago
· Last pushed 11 months ago
Metadata Files
Readme
Changelog
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE
, echo = FALSE
, comment = "#>"
, fig.path = "README_files/README-"
, out.width = "100%"
)
includeFigure = function(x) {
knitr::include_graphics(file.path("README_files", x))
}
```
```{r}
includeFigure("RdistanceTopBanner.PNG")
```
[](http://www.r-pkg.org/pkg/Rdistance)
[](http://cran.rstudio.com/web/packages/Rdistance/index.html)
[](http://www.r-pkg.org/pkg/Rdistance)
[](https://codecov.io/gh/tmcd82070/Rdistance)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://github.com/tmcd82070/Rdistance/commits/master)




## Simplified Distance-Sampling in R
**Rdistance** analyzes line- and point-transect distance-sampling data. If you are unfamiliar with distance-sampling, check out our primer, [Distance Sampling for the Average Joe](https://github.com/tmcd82070/Rdistance/wiki/Distance-Sampling-for-the-Average-Joe). If you are ready to take on an analysis, the best place to start is the **Examples** section (below). The *Example* sections of help files `?RdistDf`, `?dfuncEstim`, and `?abundEstim` contain enough information to get you started and explain a few details of analysis in **Rdistance**. The **Rdistance** [wiki](https://github.com/tmcd82070/Rdistance/wiki) (always a work-in-progress) contains additional information on distance sampling and is the equivalent of vignettes.
```{r}
includeFigure("RdistanceSeparator.PNG")
```
## Features
* Line-transect and point-transects
* Likelihood functions:
+ half-normal (`halfnorm`)
+ hazard rate (`hazrate`)
+ negative exponential (`negexp`)
* Expansion terms
* Standard methods: `print`, `plot`, `predict`, `AIC`, etc.
* Observation and transect-level distance function covariates
* Standard R formula model specification (e.g., `distance ~ elevation + observer`)
* Measurement unit control and automatic conversion
* Automated bootstrap confidence intervals
* Overall (study area) and site level abundance estimates
* Help and wiki content taught at multiple workshops and reviewed by multiple authors
```{r}
includeFigure("RdistanceSeparator.PNG")
```
## Installation
**Rdistance** depends on and imports a number of other packages. All installations require compilation because some dependent packages require compilation. Compilation requires either `Rtools` (on Windows systems) or `r-base-dev` (on Linux systems). The number of dependencies is large, in part because `Rdistance` imports `dplyr`, so a fresh installation will require patience.
### Windows - `Rtools`:
1. Install `Rtools`: Download the correct `Rtools` installer for your version of R from [here](https://cran.r-project.org/bin/windows/Rtools/). When download completes, run the installer (double-click it) and accept all default options. If `Rtools` is already installed, skip this step.
### Ubuntu - `r-base-dev`:
If R is installed, chances are repository lists are correct. For a fresh installation (of R) follow the instructions [here](https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html). This will insure that `apt get` has the correct list of repositories.
1. Install the equivalent of `Rtools` with the following command:
```
sudo apt-get install r-base-dev
```
2. `Rdistance` requires the `units` package, and the `units` package requires the `udunits` library. Install the `udunits` library on linux via:
```
sudo apt-get install libudunits2-dev
```
### Install Rdistance :
Once R is installed and running, install the current stable release or the development release with the following commands:
1. ***Current release***: Install the current release directly from CRAN. In the R terminal, issue...
``` r
install.packages("Rdistance")
```
2. ***Development version***: `Rdistance` is under active development, and the 'development' version often contains patches between official releases. Inspect commit messages for commits following the most recent release for a description of the patches. Install the development version from [GitHub](https://github.com/tmcd82070/Rdistance) using:
``` r
if( !require("devtools") ){
install.packages("devtools")
}
devtools::install_github("tmcd82070/Rdistance")
```
```{r}
includeFigure("RdistanceSeparator.PNG")
```
## Tutorials
Beginner, intermediate, and advanced `Rdistance` tutorials are [here](https://mcdonalddatasciences.com/Rdistance.html).
```{r}
includeFigure("RdistanceSeparator.PNG")
```
# RECENT CHANGES
Our [NEWS](NEWS.md) file contains salient changes across version numbers.
Owner
- Name: Trent
- Login: tmcd82070
- Kind: user
- Location: Laramie, Wyoming
- Company: McDonald Data Sciences, LLC
- Website: mcdonalddatasciences.com
- Twitter: tmcd
- Repositories: 11
- Profile: https://github.com/tmcd82070
Current email: trent@mcdonalddatasciences.com
GitHub Events
Total
- Create event: 3
- Release event: 2
- Issues event: 8
- Watch event: 1
- Delete event: 3
- Issue comment event: 7
- Push event: 35
- Pull request event: 2
- Fork event: 1
Last Year
- Create event: 3
- Release event: 2
- Issues event: 8
- Watch event: 1
- Delete event: 3
- Issue comment event: 7
- Push event: 35
- Pull request event: 2
- Fork event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Jason Carlisle | j****e@g****m | 141 |
| Trent McDonald | t****t@m****m | 103 |
| jcarlis3 | j****e@w****m | 97 |
| Trent McDonald | t****d@W****M | 91 |
| Trent | t****t@m****m | 66 |
| tmcd | t****d@w****m | 61 |
| Reid Olson | r****n@W****L | 52 |
| Aidan McDonald | a****d@W****L | 26 |
| reid olson | r****n@g****m | 15 |
| semmons1 | s****s@a****m | 9 |
| unknown | T****t@.****) | 9 |
| wmcdonald1 | w****d@w****m | 6 |
| mkleinsasser | m****a@u****u | 6 |
| Abigail Hoffman | a****2@u****u | 2 |
| Stefan Emmons | s****s@g****m | 1 |
| wmcdonald1 | 6****1 | 1 |
Committer Domains (Top 20 + Academic)
west-inc.com: 4
uwyo.edu: 2
.(none): 1
aol.com: 1
mcdonalddatasceinces.com: 1
mcdonalddatasciences.com: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 7
- Total pull requests: 1
- Average time to close issues: over 2 years
- Average time to close pull requests: about 23 hours
- Total issue authors: 4
- Total pull request authors: 1
- Average comments per issue: 2.71
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 3
- Pull requests: 1
- Average time to close issues: 4 months
- Average time to close pull requests: about 23 hours
- Issue authors: 3
- Pull request authors: 1
- Average comments per issue: 0.67
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- prairie-rex (2)
- jcarlis3 (2)
- tmcd82070 (2)
- Enchufa2 (1)
Pull Request Authors
- tmcd82070 (1)
Top Labels
Issue Labels
bug (3)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 296 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 12
- Total maintainers: 1
cran.r-project.org: Rdistance
Density and Abundance from Distance-Sampling Surveys
- Homepage: https://github.com/tmcd82070/Rdistance/wiki
- Documentation: http://cran.r-project.org/web/packages/Rdistance/Rdistance.pdf
- License: GPL-2 | GPL-3 [expanded from: GNU General Public License]
-
Latest release: 4.0.5
published over 1 year ago
Rankings
Forks count: 17.2%
Stargazers count: 20.7%
Dependent repos count: 24.2%
Average: 25.3%
Dependent packages count: 29.0%
Downloads: 35.5%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- covr * imports
- graphics * imports
- stats * imports
- utils * imports
- devtools * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests