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.
If you are ready to take on an analysis, the best place to start is the
Beginner tutorials
here. In addition,
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.
halfnorm)hazrate)negexp)oneStep - mixture of two uniforms)Gamma)print, plot, predict, AIC, etc.distance ~ elevation + observer)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.
Rtools:Rtools: Download the correct Rtools installer for your
version of R from
here. When
download completes, run the installer (double-click it) and accept
all default options. If Rtools is already installed, skip this
step.r-base-dev:If R is installed, chances are repository lists are correct. For a fresh
installation (of R) follow the instructions
here.
This will insure that apt get has the correct list of repositories.
Rtools with the following command:sudo apt-get install r-base-dev
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
Once R is installed and running, install the current stable release or the development release with the following commands:
install.packages("Rdistance")
Rdistance is under active development.
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 using:if( !require("devtools") ){
install.packages("devtools")
}
# devtools::install_github("tmcd82070/Rdistance")
install.packages("Rdistance", repos = c('https://tmcd82070.r-universe.dev', 'https://cloud.r-project.org'))
Beginner, intermediate, and advanced Rdistance tutorials are
here.
Our NEWS file contains salient changes across version numbers.